mirror of
https://github.com/cc65/cc65.git
synced 2024-11-18 15:05:14 +00:00
14 lines
333 B
C
14 lines
333 B
C
/* Bug #2017 - cc65 erroneously allows arrays of structs with flexible array members */
|
|
|
|
typedef struct x {
|
|
int a;
|
|
int b[]; /* Ok: Flexible array member can be last */
|
|
} x;
|
|
|
|
typedef union u {
|
|
int a;
|
|
x x; /* Ok: Union member can contain flexible array member */
|
|
} u;
|
|
|
|
union u y[3]; /* Should be an error */
|