Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail208.d(18): Error: `return` expression expected
5 fail_compilation/fail208.d(21): called from here: `MakeA()`
6 ---
7 */
8
9
10 // https://issues.dlang.org/show_bug.cgi?id=1593
11 // ICE compiler crash empty return statement in function
12 struct A
13 {
14 }
15
16 A MakeA()
17 {
18 return ;
19 }
20
21 static const A aInstance = MakeA();