Debian Codegraph @

gcc/testsuite/gcc.c-torture/compile/dilayout.c

raw
1 struct ii
2 {
3 int a;
4 int b;
5 };
6
7 struct foo
8 {
9 int a;
10 struct ii ab;
11 int b;
12 };
13
14 struct ii
15 foo (int *p, struct foo a)
16 {
17 p[0] = a.a;
18 p[1] = a.ab.a;
19 p[2] = a.ab.b;
20 p[3] = a.b;
21 return a.ab;
22 }
23
24 void
25 str (struct ii ab, struct ii *p)
26 {
27 *p = ab;
28 }
29
30 void
31 ll (long long ab, long long *p)
32 {
33 *p = ab;
34 }
35