summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vmx/pr27006.c
blob: d34d51e92c6b03c552c04fd96fe50429dae0e043 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* { dg-options "-maltivec" } */

extern void abort ();

typedef union
{
  int i[4];
  __attribute__((altivec(vector__))) int v;
} vec_int4;

int main (void)
{
  vec_int4 i1;

  i1.v = (__attribute__((altivec(vector__))) int){31, 31, 31, 31};

  if (i1.i[0] != 31)
    abort ();

  return 0;
}