Debian Codegraph @

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

raw
1 /*
2 REQUIRED_ARGS: -check=invariant=off
3 TEST_OUTPUT:
4 ----
5 fail_compilation/test20626.d(2): Error: expression `__unittest_L1_C1` has no type
6 _error_
7 const void()
8 ----
9
10 https://issues.dlang.org/show_bug.cgi?id=20626
11 */
12
13 #line 1
14 unittest {}
15 pragma(msg, typeof(__unittest_L1_C1));
16
17 struct S
18 {
19 invariant {}
20 }
21
22 pragma(msg, typeof(S.init.__invariant1));