Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.c-torture/execute/pr44164.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 struct X { |
2 struct Y { | |
3 struct YY { | |
4 struct Z { | |
5 int i; | |
6 } c; | |
7 } bb; | |
8 } b; | |
9 } a; | |
10 int __attribute__((noinline, noclone)) | |
11 foo (struct Z *p) | |
12 { | |
13 int i = p->i; | |
14 a.b = (struct Y){}; | |
15 return p->i + i; | |
16 } | |
17 extern void abort (void); | |
18 int main() | |
19 { | |
20 a.b.bb.c.i = 1; | |
21 if (foo (&a.b.bb.c) != 1) | |
22 abort (); | |
23 return 0; | |
24 } |