projects
/
coreboot.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
oops, one URL fix was missing. Add new DirectHW URL
[coreboot.git]
/
util
/
romcc
/
tests
/
simple_test85.c
1
struct sub4 {
2
unsigned a;
3
unsigned b;
4
unsigned c;
5
unsigned d;
6
unsigned e;
7
unsigned f;
8
unsigned g;
9
};
10
struct sub3 {
11
unsigned a;
12
unsigned b;
13
unsigned c;
14
unsigned d;
15
unsigned e;
16
unsigned f;
17
struct sub4 s4;
18
};
19
struct sub2 {
20
unsigned a;
21
unsigned b;
22
unsigned c;
23
unsigned d;
24
unsigned e;
25
struct sub3 s3;
26
};
27
struct sub1 {
28
unsigned a;
29
unsigned b;
30
struct sub2 s2;
31
};
32
33
struct stuff {
34
signed int a;
35
signed int b;
36
signed int c;
37
unsigned int d;
38
struct sub1 s1;
39
};
40
41
42
static void main(void)
43
{
44
struct stuff *var;
45
unsigned int *foo;
46
47
var = (struct stuff *)(0x12345678);
48
foo = &var->d;
49
foo = &((*var).d);
50
foo = &var->s1.s2.s3.s4.g;
51
}