Files
c3c/test/test_suite/struct/flexible_array_resolve.c3
Christoffer Lerno 25bccf4883 New faults and syntax (#2034)
- Remove `[?]` syntax.
- Change `int!` to `int?` syntax.
- New `fault` declarations.
- Enum associated values can reference the calling enum.
2025-03-10 00:11:35 +01:00

17 lines
193 B
Plaintext

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
}