libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / 20190327-1.c
blob45093da768c4eb4e04ac168450edf1ec8357fa31
1 /* { dg-do run } */
2 /* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */
4 typedef long v2di __attribute__((vector_size(16)));
5 v2di v;
6 void __attribute__((noinline))
7 foo()
9 v = (v2di){v[1], v[0]};
12 int main()
14 v[0] = 1;
15 foo ();
16 if (v[0] != 0 || v[1] != 1)
17 __builtin_abort ();
18 return 0;