Debian Codegraph @

gcc/testsuite/gdc.test/runnable/test10619.d

raw
1 /*
2 https://issues.dlang.org/show_bug.cgi?id=10619
3
4 PERMUTE_ARGS:
5 RUN_OUTPUT:
6 ---
7 1
8 2
9 3
10 4
11 ---
12 */
13
14 void main()
15 {
16 {
17 int x = 1;
18 print!x();
19 }
20 {
21 int x = 2;
22 print!x();
23 }
24 {
25 static int y = 3;
26 print!y();
27 }
28 {
29 static int y = 4;
30 print!y();
31 }
32 }
33
34 void print(alias symbol)()
35 {
36 import core.stdc.stdio : printf;
37 printf("%d\n", symbol);
38 }