Debian Codegraph @

gcc/testsuite/gdc.test/compilable/issue24174.d

raw
1 /* TEST_OUTPUT:
2 ---
3 true
4 false
5 ---
6 */
7
8 bool func1() {
9 struct BtMatcher {
10 uint pc = 0;
11 }
12 BtMatcher matcher;
13 with (matcher) {
14 goto StartLoop;
15 StartLoop:
16 goto SecondLabel;
17 SecondLabel:
18 return true;
19 }
20 }
21
22 bool func2() {
23 try {
24 throw new Exception("a");
25 return true;
26 } catch (Exception e) {
27 goto StartA;
28 StartA:
29 goto StartB;
30 StartB:
31 return false;
32 }
33 }
34
35 pragma(msg, func1());
36 pragma(msg, func2());