libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / vmx / pr27006.c
blobd34d51e92c6b03c552c04fd96fe50429dae0e043
1 /* { dg-options "-maltivec" } */
3 extern void abort ();
5 typedef union
7 int i[4];
8 __attribute__((altivec(vector__))) int v;
9 } vec_int4;
11 int main (void)
13 vec_int4 i1;
15 i1.v = (__attribute__((altivec(vector__))) int){31, 31, 31, 31};
17 if (i1.i[0] != 31)
18 abort ();
20 return 0;