mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Flexible array member added, zero sized structs removed.
This commit is contained in:
5
test/test_suite/union/flexible_array_union.c3
Normal file
5
test/test_suite/union/flexible_array_union.c3
Normal file
@@ -0,0 +1,5 @@
|
||||
union Zee
|
||||
{
|
||||
int z;
|
||||
int[*] y; // #error: Flexible array members not allowed in unions.
|
||||
}
|
||||
@@ -1,7 +1,5 @@
|
||||
module test;
|
||||
|
||||
struct Empty {}
|
||||
union Foo {}
|
||||
union Qu
|
||||
{
|
||||
Qu *x;
|
||||
Reference in New Issue
Block a user