c++: Fix ICE with #embed/RAW_DATA_CST after list conversion [PR118671]
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-fre-74.c
blob4439d838e8461fbcc09aa62316fa1492c69d7510
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-fre1" } */
4 typedef int v4si __attribute__((vector_size(__SIZEOF_INT__ * 4)));
5 int foo (int *a)
7 a[2] = 2;
8 a[0] = 0;
9 a[1] = 1;
10 a[3] = 4;
11 v4si x = *(v4si *)a;
12 *(v4si *)&a[4] = x;
13 return a[4] + a[7];
16 /* { dg-final { scan-tree-dump "return 4;" "fre1" } } */