2 /* { dg-options "-O" } */
4 extern void abort (void);
6 /* We should fold all reads from xconstant and eliminate it, removing
7 the reference to blah which cannot be resolved at link time. */
10 typedef int v4si
__attribute__((vector_size(16)));
14 const v4si x
[2] __attribute__((aligned(32)));
15 } xconstant
= { &blah
, { { 0, 1, 2, 3 }, { 2, 3, 4, 5 } } };
19 if (sizeof (int) != 4)
21 if (*(int *)&xconstant
.x
[0][0] != 0)
23 if (*(int *)&xconstant
.x
[0][1] != 1)
25 if (*(int *)&xconstant
.x
[0][2] != 2)
27 if (*(int *)&xconstant
.x
[0][3] != 3)
29 if (*(int *)&xconstant
.x
[1][0] != 2)
31 if (*(int *)&xconstant
.x
[1][1] != 3)
33 if (*(int *)&xconstant
.x
[1][2] != 4)
35 if (*(int *)&xconstant
.x
[1][3] != 5)