Debian Codegraph @

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

raw
1 /* TEST_OUTPUT:
2 ---
3 fail_compilation/test20696.d(106): Error: function `test20696.S!().S.test` cannot retrieve its `.mangleof` while inferring attributes
4 fail_compilation/test20696.d(106): while evaluating `pragma(msg, test.mangleof)`
5 fail_compilation/test20696.d(111): Error: template instance `test20696.S!()` error instantiating
6 ---
7 */
8
9 #line 100
10
11 // https://issues.dlang.org/show_bug.cgi?id=20696
12
13 struct S()
14 {
15 int test() {
16 pragma(msg, test.mangleof);
17 return 3;
18 }
19 }
20
21 S!() s;