Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.c-torture/compile/pr44946.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 struct A |
2 { | |
3 int i; | |
4 long l; | |
5 }; | |
6 | |
7 struct B | |
8 { | |
9 int i; | |
10 }; | |
11 | |
12 struct C | |
13 { | |
14 int i; | |
15 struct B b; | |
16 }; | |
17 | |
18 struct B foo (struct A a) | |
19 { | |
20 struct C *c = (struct C *) &a; | |
21 return c->b; | |
22 } | |
23 void bar (struct A a, struct B b) | |
24 { | |
25 struct C *c = (struct C *) &a; | |
26 c->b = b; | |
27 } |