Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.c-torture/compile/20031011-1.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 /* PR optimization/12544 */ |
2 /* Origin: Tony Hosking <hosking@cs.purdue.edu> */ | |
3 | |
4 /* Verify that non-local structures passed by invisible | |
5 reference are correctly put in the stack. */ | |
6 | |
7 typedef struct { | |
8 int a; | |
9 int f; | |
10 } A; | |
11 | |
12 A *b; | |
13 | |
14 void x (A a) { | |
15 void y () { | |
16 a.a = 0; | |
17 } | |
18 | |
19 b = &a; | |
20 y(); | |
21 } |