sizeof structs and structs-in-structs working

This commit is contained in:
pommicket 2022-01-27 18:23:10 -05:00
parent 09f3f9b450
commit b5a498aa52
2 changed files with 85 additions and 12 deletions

View file

@ -16,4 +16,13 @@ typedef struct A {
long f;
} A;
typedef int x[(unsigned)-3];
typedef union B{
int x;
struct {
int y;
struct {long z; } c;
} c;
}B;
typedef int x[sizeof(A)];
typedef int y[sizeof(struct B)];