Revise -mdisable-fpregs option and add new -msoft-mult option
[official-gcc.git] / gcc / testsuite / gcc.dg / pr43670.c
blobf152b4d7a639761917c1a89e349e53f7111a33e7
1 /* PR debug/43670 */
2 /* { dg-do compile } */
3 /* { dg-options "-O -ftree-vrp -fcompare-debug" } */
5 extern void abort (void);
7 typedef struct { double T1; } S;
9 void
10 foo (void)
12 int i, j;
13 double s;
15 S y[2][2];
16 S *x[2] = { y[0], y[1] };
17 S **p = x;
19 for (i = 0; i < 2; i++)
20 for (j = 0; j < 2; j++)
21 p[j][i].T1 = 1;
23 for (i = 0; i < 2; i++)
24 for (j = 0; j < 2; j++)
25 s = p[j][i].T1;
27 if (s != 1)
28 abort ();