2 // https://issues.dlang.org/show_bug.cgi?id=16098
4 /*********************************************/
6 void testDynamicClosure()
10 assert((cast(size_t
) &b
) % 128 == 0);
13 byte foo() { return b
; }
18 __gshared
byte delegate() dg
;
20 /*********************************************/
22 void testStaticClosure()
26 assert((cast(size_t
) &b
) % 128 == 0);
29 byte foo() { return b
; }
33 /*********************************************/
43 /*********************************************/
48 ulong lo
; // low 64 bits
49 ulong hi
; // high 64 bits
52 enum Cent One
= { 1 };
54 Cent
inc(Cent c
) { return add(c
, One
); }
56 Cent
add(Cent c1
, Cent c2
) { const Cent
ret = { 3, 2 }; return ret; }
60 const Cent C10_0
= { 0, 10 };
61 const Cent Cm10_0
= inc(C10_0
);
64 /*********************************************/