mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-07-22 07:05:22 +02:00
[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:
15
test/bug47.d
Normal file
15
test/bug47.d
Normal 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
12
test/fail1.d
Normal file
@@ -0,0 +1,12 @@
|
||||
module fail1;
|
||||
|
||||
void func()
|
||||
{
|
||||
float* fp;
|
||||
float f = *fp;
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
func();
|
||||
}
|
||||
Reference in New Issue
Block a user