mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Fixing flexible array resolution.
This commit is contained in:
16
test/test_suite/struct/flexible_array_resolve.c3
Normal file
16
test/test_suite/struct/flexible_array_resolve.c3
Normal file
@@ -0,0 +1,16 @@
|
||||
struct Abc
|
||||
{
|
||||
Foo[4] x; // #error: Arrays of structs with flexible array members
|
||||
}
|
||||
|
||||
struct Foo
|
||||
{
|
||||
int a;
|
||||
int[*] x;
|
||||
}
|
||||
|
||||
struct Foo2
|
||||
{
|
||||
int a;
|
||||
int[*] x, y; // #error: must be the last element
|
||||
}
|
||||
Reference in New Issue
Block a user