OSDN Git Service

PR testsuite/39769
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / vmx / pr27006.c
1 /* { dg-options "-maltivec" } */
2
3 extern void abort ();
4
5 typedef union
6 {
7   int i[4];
8   __attribute__((altivec(vector__))) int v;
9 } vec_int4;
10
11 int main (void)
12 {
13   vec_int4 i1;
14
15   i1.v = (__attribute__((altivec(vector__))) int){31, 31, 31, 31};
16
17   if (i1.i[0] != 31)
18     abort ();
19
20   return 0;
21 }
22