8 extern(C) int printf(const char*, ...);
10 /***********************/
17 /***********************/
18 // https://issues.dlang.org/show_bug.cgi?id=3032
22 scope o1 = new Object(); // on stack
23 scope o2 = new class Object {}; // on stack
26 scope fp = (){ n = 10; }; // no closure
31 /***********************/
32 // https://issues.dlang.org/show_bug.cgi?id=12642
34 __gshared int[1] data12642;
36 int[1] foo12642() @nogc
42 void test12642() @nogc
52 /***********************/
53 // https://issues.dlang.org/show_bug.cgi?id=12936
55 void test12936() @nogc
57 foreach (int[1] a; [[1]])
61 foreach (i, int[1] a; [[1], [2]])
63 if (i == 0) assert(a == [1]);
64 else if (i == 1) assert(a == [2]);
69 /***********************/