]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/fail_compilation/ice17074.d
Add D front-end, libphobos library, and D2 testsuite.
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / ice17074.d
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/ice17074.d(9): Error: identifier expected for C++ namespace
5 fail_compilation/ice17074.d(9): Error: found `cast` when expecting `)`
6 fail_compilation/ice17074.d(9): Error: declaration expected, not `)`
7 ---
8 */
9 extern(C++, cast) void ice_keyword();
10
11 /*
12 TEST_OUTPUT:
13 ---
14 fail_compilation/ice17074.d(19): Error: identifier expected for C++ namespace
15 fail_compilation/ice17074.d(19): Error: found `__overloadset` when expecting `)`
16 fail_compilation/ice17074.d(19): Error: declaration expected, not `)`
17 ---
18 */
19 extern(C++, std.__overloadset) void ice_std_keyword();
20
21 /*
22 TEST_OUTPUT:
23 ---
24 fail_compilation/ice17074.d(29): Error: identifier expected for C++ namespace
25 fail_compilation/ice17074.d(29): Error: found `...` when expecting `)`
26 fail_compilation/ice17074.d(29): Error: declaration expected, not `)`
27 ---
28 */
29 extern(C++, ...) void ice_token();
30
31 /*
32 TEST_OUTPUT:
33 ---
34 fail_compilation/ice17074.d(39): Error: identifier expected for C++ namespace
35 fail_compilation/ice17074.d(39): Error: found `*` when expecting `)`
36 fail_compilation/ice17074.d(39): Error: declaration expected, not `)`
37 ---
38 */
39 extern(C++, std.*) void ice_std_token();