[svn r86] Changed the way arguments are given storage. It is now detected if they will need it during semantic passes.

Initial support for debug information. Very limited, but MUCH better than nothing :)
This commit is contained in:
Tomas Lindquist Olsen
2007-11-02 01:17:26 +01:00
parent 6bb534fb2a
commit d58ce84169
17 changed files with 507 additions and 66 deletions

15
test/bug47.d Normal file
View File

@@ -0,0 +1,15 @@
module bug47;
bool func(bool a, bool b)
{
if (a) b = false;
return b;
}
void main()
{
assert(func(0,0) == 0);
assert(func(0,1) == 1);
assert(func(1,0) == 0);
assert(func(1,1) == 0);
}

12
test/fail1.d Normal file
View File

@@ -0,0 +1,12 @@
module fail1;
void func()
{
float* fp;
float f = *fp;
}
void main()
{
func();
}