Debian Codegraph @

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

raw
1 // https://issues.dlang.org/show_bug.cgi?id=23159
2
3 // REQUIRED_ARGS: -betterC
4 /*
5 TEST_OUTPUT:
6 ---
7 fail_compilation/test23159.d(14): Error: `scope(failure)` cannot be used with -betterC
8 fail_compilation/test23159.d(18): Error: `scope(success)` cannot be used with -betterC
9 ---
10 */
11
12 void main()
13 {
14 scope(failure)
15 {
16 int a;
17 }
18 scope(success)
19 {
20 int a;
21 }
22 }