Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.c-torture/execute/20031214-1.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 /* PR optimization/10312 */ |
2 /* Originator: Peter van Hoof <p dot van-hoof at qub dot ac dot uk> */ | |
3 | |
4 /* Verify that the strength reduction pass doesn't find | |
5 illegitimate givs. */ | |
6 | |
7 struct | |
8 { | |
9 double a; | |
10 int n[2]; | |
11 } g = { 0., { 1, 2}}; | |
12 | |
13 int k = 0; | |
14 | |
15 void | |
16 b (int *j) | |
17 { | |
18 } | |
19 | |
20 int | |
21 main () | |
22 { | |
23 int j; | |
24 | |
25 for (j = 0; j < 2; j++) | |
26 k = (k > g.n[j]) ? k : g.n[j]; | |
27 | |
28 k++; | |
29 b (&j); | |
30 | |
31 return 0; | |
32 } |