codegen for . -> ,

This commit is contained in:
pommicket 2022-02-12 14:31:14 -05:00
parent 864b23702a
commit 3ff998da40
3 changed files with 46 additions and 9 deletions

View file

@ -3,13 +3,13 @@ static char x = -2;
typedef struct {
int x;
char y;
int z;
long z;
long q;
} Structure;
long main(int argc, char **argv) {
Structure s[] = {3, 5, -88,6,9,12};
Structure *ps = s;
int *p = &ps->z;
return *p;
Structure s[] = {3, 5, -88,6,9,12,88,33};
Structure t = s[0];
return t.z;
}