]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/gdc.test/fail_compilation/pragmas.d
Add D front-end, libphobos library, and D2 testsuite.
[gcc.git] / gcc / testsuite / gdc.test / fail_compilation / pragmas.d
1 /*
2 REQUIRED_ARGS:
3 PERMUTE_ARGS:
4 */
5
6 /************************************************************/
7
8 /*
9 TEST_OUTPUT:
10 ---
11 fail_compilation/pragmas.d(103): Error: boolean expression expected for pragma(inline)
12 fail_compilation/pragmas.d(108): Error: boolean expression expected for pragma(inline)
13 fail_compilation/pragmas.d(113): Error: pragma(inline, true or false) expected, not `"string"`
14 fail_compilation/pragmas.d(118): Error: unrecognized `pragma(unrecognized)`
15 ---
16 */
17
18 #line 100
19 void test1()
20 {
21 pragma(inline);
22 pragma(inline, true, false);
23 }
24
25 void test2()
26 {
27 pragma(inline, true, false);
28 }
29
30 void test3()
31 {
32 pragma(inline, "string");
33 }
34
35 void test4()
36 {
37 pragma(unrecognized, "string");
38 }
39
40
This page took 0.039153 seconds and 5 git commands to generate.