mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-05-02 00:11:30 +02:00
Added testcase for overlapping struct default initializer I has missed. Slight tweak of the relevant error message.
This commit is contained in:
8
tests/mini/nocompile_initoverlap2.d
Normal file
8
tests/mini/nocompile_initoverlap2.d
Normal file
@@ -0,0 +1,8 @@
|
||||
struct S
|
||||
{
|
||||
union
|
||||
{
|
||||
float f = 1;
|
||||
int i = 2;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user