codegen for address of
This commit is contained in:
parent
0ee06ac2c4
commit
864b23702a
3 changed files with 79 additions and 4 deletions
15
05/main.c
15
05/main.c
|
@ -1,6 +1,15 @@
|
|||
static char x = -2;
|
||||
|
||||
typedef struct {
|
||||
int x;
|
||||
char y;
|
||||
int z;
|
||||
} Structure;
|
||||
|
||||
|
||||
long main(int argc, char **argv) {
|
||||
int y[] = {38, 55, -22};
|
||||
int *z = (y+2)[-1];
|
||||
return *z;
|
||||
Structure s[] = {3, 5, -88,6,9,12};
|
||||
Structure *ps = s;
|
||||
int *p = &ps->z;
|
||||
return *p;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue