Debian Codegraph @

gcc/testsuite/gdc.test/fail_compilation/pragmas.d

raw
1 /************************************************************/
2
3 /*
4 TEST_OUTPUT:
5 ---
6 fail_compilation/pragmas.d(103): Error: one boolean expression expected for `pragma(inline)`, not 2
7 fail_compilation/pragmas.d(108): Error: one boolean expression expected for `pragma(inline)`, not 2
8 ---
9 */
10
11 #line 100
12 void test1()
13 {
14 pragma(inline);
15 pragma(inline, true, false);
16 }
17
18 void test2()
19 {
20 pragma(inline, true, false);
21 }
22
23 void test3()
24 {
25 pragma(inline, "string"); // works now
26 }
27
28 void test4()
29 {
30 pragma(unrecognized, "string"); // permitted, just ignored
31 }