Debian Codegraph @

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

raw
1
2 /*
3 TEST_OUTPUT:
4 ---
5 fail_compilation/goto1.d(1010): Error: `return` statements cannot be in `finally` bodies
6 ---
7 */
8
9 void foo();
10 void bar();
11
12 #line 1000
13
14 void test2()
15 {
16 try
17 {
18 foo();
19 }
20 finally
21 {
22 bar();
23 return;
24 }
25 }