Debian Codegraph @

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

raw
1 /* TEST_OUTPUT:
2 ---
3 fail_compilation/test18607.d(10): Error: function `test18607.test!int.test` no `return exp;` or `assert(0);` at end of function
4 & test
5 ---
6 */
7
8 // https://issues.dlang.org/show_bug.cgi?id=18607
9
10 int* test(T...)() pure @safe {
11 L:foreach(_; T) {
12 continue L;
13 return null;
14 }
15 }
16
17
18 pragma(msg, &test!(int));