d: Merge upstream dmd, druntime 4c18eed967, phobos d945686a4.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / test21062.d
blob5ab530737339f25cff8840a4edb20cdc8d15c605
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/test21062.d(16): Error: no identifier for declarator `bool`
5 fail_compilation/test21062.d(16): `synchronized` is a keyword, perhaps append `_` to make it an identifier
6 fail_compilation/test21062.d(17): Error: no identifier for declarator `ubyte*`
7 fail_compilation/test21062.d(17): `out` is a keyword, perhaps append `_` to make it an identifier
8 fail_compilation/test21062.d(21): Error: no identifier for declarator `uint`
9 fail_compilation/test21062.d(21): `in` is a keyword, perhaps append `_` to make it an identifier
10 ---
13 // https://issues.dlang.org/show_bug.cgi?id=21062
14 // Confusing error when using a keyword as an identifier for a declaration
16 bool synchronized;
17 ubyte* out;
19 void main()
21 foreach(uint in; [])