☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
test21247b.d
☽
☼
gcc/testsuite/gdc.test/fail_compilation/test21247b.d
code
plain
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
}