mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-03-15 08:31:49 +01:00
[svn r362] Started merging the old 'test' dir as well as the newer 'tangotests' dir into 'tests/mini' and 'tests/minicomplex'.
This commit is contained in:
23
tests/mini/nested12.d
Normal file
23
tests/mini/nested12.d
Normal file
@@ -0,0 +1,23 @@
|
||||
module nested12;
|
||||
|
||||
extern(C) int printf(char*, ...);
|
||||
|
||||
void main()
|
||||
{
|
||||
func();
|
||||
}
|
||||
|
||||
void func()
|
||||
{
|
||||
void a(int i)
|
||||
{
|
||||
printf("%d\n", i);
|
||||
}
|
||||
|
||||
void b()
|
||||
{
|
||||
a(42);
|
||||
}
|
||||
|
||||
b();
|
||||
}
|
||||
Reference in New Issue
Block a user