mirror of
https://github.com/cc65/cc65.git
synced 2025-03-01 11:29:27 +00:00
12 lines
284 B
C
12 lines
284 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;
|
|
|
|
struct y {
|
|
x x; /* Not ok: Contains flexible array member */
|
|
int a;
|
|
};
|