Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/test21247b.d(10): Error: anonymous union can only be a part of an aggregate, not function `test21247`
5 ---
6 */
7 // https://github.com/dlang/dmd/issues/21247
8 void test21247()
9 {
10 union {
11 uint u = void;
12 ubyte[4] b;
13 }
14 }