]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/runnable/imports/link13415a.d
Add D front-end, libphobos library, and D2 testsuite.
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / runnable / imports / link13415a.d
1 module imports.link13415a;
2 struct S(alias func)
3 {
4 void call()
5 {
6 func();
7 }
8 }
9
10 extern(C) int printf(in char*, ...);
11
12 void f(int i = 77)
13 {
14 void g()
15 {
16 printf("i = %d;\n", i);
17 assert(i == 77);
18 }
19 S!g().call();
20 }