1 // { dg-do compile { target powerpc*-*-* } }
2 // { dg-require-effective-target powerpc_altivec_ok }
3 // { dg-options "-maltivec" }
5 // Make sure that bool vectors have distinct names to int vectors
7 #define vector__ __attribute__((altivec (vector__)))
8 #define bool__ __attribute__((altivec(bool__)))
10 typedef vector__ unsigned int simd_type;
11 typedef vector__ bool__ int bool_simd_type;
13 void Foo (bool_simd_type const &a)
15 simd_type const &v = a; // { dg-error "'const unsigned int __vector__&' from expression of type 'const __bool int __vector__'" }