mirror of
https://github.com/cc65/cc65.git
synced 2024-11-19 06:31:31 +00:00
17 lines
412 B
C
17 lines
412 B
C
/* Bug #2016 - cc65 erroneously allows struct fields that are 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;
|
|
|
|
struct y {
|
|
u u; /* Not ok: Contains union that contains flexible array member */
|
|
int a;
|
|
};
|