Debian Codegraph @

gcc/testsuite/gdc.test/runnable/bug5.d

raw
1 // REQUIRED_ARGS: -w
2
3 class F { }
4
5 int test1() {
6 scope F f = new F(); // comment out and warning goes away
7 return 0;
8 }
9
10 int test2() { // no return at end of function
11 try {
12 return 0;
13 } finally { }
14 }
15
16 void main()
17 {
18 test1();
19 test2();
20 }