Tighten condition in vect/pr85586.c (PR 85654)
[official-gcc.git] / gcc / testsuite / gcc.dg / pr43670.c
blob45088fe01e3ba6a791289f89b096c69c749b14f2
1 /* PR debug/43670 */
2 /* { dg-do compile } */
3 /* { dg-options "-O -ftree-vrp -fcompare-debug" } */
4 /* { dg-xfail-if "" { powerpc-ibm-aix* } } */
6 extern void abort (void);
8 typedef struct { double T1; } S;
10 void
11 foo (void)
13 int i, j;
14 double s;
16 S y[2][2];
17 S *x[2] = { y[0], y[1] };
18 S **p = x;
20 for (i = 0; i < 2; i++)
21 for (j = 0; j < 2; j++)
22 p[j][i].T1 = 1;
24 for (i = 0; i < 2; i++)
25 for (j = 0; j < 2; j++)
26 s = p[j][i].T1;
28 if (s != 1)
29 abort ();