d: Merge upstream dmd ff57fec515, druntime ff57fec515, phobos 17bafda79.
[official-gcc.git] / gcc / testsuite / gdc.test / runnable / test24184.d
blob736824fce8621afd8c92fa11cd4822e4d9bd667d
1 // https://issues.dlang.org/show_bug.cgi?id=24184
3 void stage3(alias abc)(ubyte[])
5 bool skipSpaces()
7 abc();
8 return false;
10 skipSpaces;
12 ubyte[] singleThreadJsonImpl(alias xxx)(ubyte[] table)
14 align(64) ubyte[] vector;
16 ubyte[] abc() { return vector; }
18 stage3!(abc)(table);
20 return table;
22 ubyte[] singleThreadJsonText()
24 bool xxx() { return true; }
26 return singleThreadJsonImpl!(xxx)([]);
28 void deserializeJson() { singleThreadJsonText(); }
30 void main() { deserializeJson(); }