| 1 |
// { dg-do compile } |
| 2 |
// { dg-options "-maltivec" } |
| 3 |
// { dg-require-effective-target powerpc_altivec } |
| 4 |
|
| 5 |
// Make sure that bool vectors have distinct names to int vectors |
| 6 |
|
| 7 |
#define vector__ __attribute__((altivec (vector__))) |
| 8 |
#define bool__ __attribute__((altivec(bool__))) |
| 9 |
|
| 10 |
typedef vector__ unsigned int simd_type; |
| 11 |
typedef vector__ bool__ int bool_simd_type; |
| 12 |
|
| 13 |
void Foo (bool_simd_type const &a) |
| 14 |
{ |
| 15 |
simd_type const &v = a; // { dg-error "invalid initialization of reference of type" } |
| 16 |
} |