codegen for . -> ,
This commit is contained in:
parent
864b23702a
commit
3ff998da40
3 changed files with 46 additions and 9 deletions
10
05/main.c
10
05/main.c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue