blob: 3c65cbf2f4055dd367c56f5672e0c673fca78bd7 [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/fail19919.d(16): Error: union field `f` with default initialization `3.14F` must be before field `n`
fail_compilation/fail19919.d(23): Error: union field `f` with default initialization `3.14F` must be before field `n`
---
*/
void main()
{
struct X
{
union
{
int n;
float f = 3.14f;
}
}
union U
{
int n;
float f = 3.14f;
}
}