* gcc.dg/ucnid-[23456].c: XFAIL on AIX.
[official-gcc.git] / gcc / testsuite / gcc.dg / 20030218-1.c
blob6296d31bfcefcc9bef6e6f27119d04ec69464518
1 /* { dg-do compile { target powerpc-*-eabi* } } */
2 /* { dg-options "-mspe=yes" } */
4 /* Test vectors that can interconvert without a cast. */
6 __ev64_opaque__ opp;
7 int vint __attribute__((vector_size (8)));
8 short vshort __attribute__((vector_size (8)));
9 float vfloat __attribute__((vector_size (8)));
11 int
12 main (void)
14 __ev64_opaque__ george = { 1, 2 }; /* { dg-error "opaque vector types cannot be initialized" } */
16 opp = vfloat;
17 vshort = opp;
18 vfloat = vshort; /* { dg-error "incompatible types in assignment" } */
20 /* Just because this is a V2SI, it doesn't make it an opaque. */
21 vint = vshort; /* { dg-error "incompatible types in assignment" } */
23 return 0;