PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20031214-1.c
blobe52200c01e66234fcb3d62e463447889036a0065
1 /* PR optimization/10312 */
2 /* Originator: Peter van Hoof <p dot van-hoof at qub dot ac dot uk> */
4 /* Verify that the strength reduction pass doesn't find
5 illegitimate givs. */
7 struct
9 double a;
10 int n[2];
11 } g = { 0., { 1, 2}};
13 int k = 0;
15 void
16 b (int *j)
20 int
21 main ()
23 int j;
25 for (j = 0; j < 2; j++)
26 k = (k > g.n[j]) ? k : g.n[j];
28 k++;
29 b (&j);
31 return 0;