mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-04-21 19:29:03 +02:00
[svn r133] Fixed some problems with inlining not happening :P
Fixed problems with certain cases of deeply nested classes/functions.
This commit is contained in:
20
test/nested10.d
Normal file
20
test/nested10.d
Normal file
@@ -0,0 +1,20 @@
|
||||
module nested10;
|
||||
|
||||
void main()
|
||||
{
|
||||
int j = 3;
|
||||
void F()
|
||||
{
|
||||
int i = j;
|
||||
printf("F: i = %d, j = %d\n", i, j);
|
||||
void G()
|
||||
{
|
||||
printf("G: i = %d, j = %d\n", i, j);
|
||||
j += i;
|
||||
}
|
||||
G();
|
||||
}
|
||||
F();
|
||||
printf("6 = %d\n", j);
|
||||
assert(j == 6);
|
||||
}
|
||||
Reference in New Issue
Block a user