Debian Codegraph @

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

raw
1 /*
2 REQUIRED_ARGS: -o-
3 TEST_OUTPUT:
4 ---
5 fail_compilation/ice11552.d(13): Error: function `ice11552.test11552` label `label` is undefined
6 fail_compilation/ice11552.d(16): called from here: `test11552()`
7 fail_compilation/ice11552.d(16): while evaluating: `static assert(test11552())`
8 ---
9 */
10
11 int test11552()
12 {
13 goto label;
14 return 1;
15 }
16 static assert(test11552());