d: Merge upstream dmd, druntime 4c18eed967, phobos d945686a4.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / test20626.d
blobbd0bed8a85a789b56d0ef888fec6c0bb937b86be
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 ----
10 https://issues.dlang.org/show_bug.cgi?id=20626
13 #line 1
14 unittest {}
15 pragma(msg, typeof(__unittest_L1_C1));
17 struct S
19 invariant {}
22 pragma(msg, typeof(S.init.__invariant1));