| 1 |
// https://issues.dlang.org/show_bug.cgi?id=24184 |
| 2 |
|
| 3 |
void stage3(alias abc)(ubyte[]) |
| 4 |
{ |
| 5 |
bool skipSpaces() |
| 6 |
{ |
| 7 |
abc(); |
| 8 |
return false; |
| 9 |
} |
| 10 |
skipSpaces; |
| 11 |
} |
| 12 |
ubyte[] singleThreadJsonImpl(alias xxx)(ubyte[] table) |
| 13 |
{ |
| 14 |
align(64) ubyte[] vector; |
| 15 |
|
| 16 |
ubyte[] abc() { return vector; } |
| 17 |
|
| 18 |
stage3!(abc)(table); |
| 19 |
|
| 20 |
return table; |
| 21 |
} |
| 22 |
ubyte[] singleThreadJsonText() |
| 23 |
{ |
| 24 |
bool xxx() { return true; } |
| 25 |
|
| 26 |
return singleThreadJsonImpl!(xxx)([]); |
| 27 |
} |
| 28 |
void deserializeJson() { singleThreadJsonText(); } |
| 29 |
|
| 30 |
void main() { deserializeJson(); } |