Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/ext/altivec-17.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// { dg-do compile { target powerpc*-*-* } } // { dg-require-effective-target powerpc_altivec_ok } // { dg-options "-maltivec" } // Make sure that bool vectors have distinct names to int vectors #define vector__ __attribute__((altivec (vector__))) #define bool__ __attribute__((altivec(bool__))) typedef vector__ unsigned int simd_type; typedef vector__ bool__ int bool_simd_type; void Foo (bool_simd_type const &a) { simd_type const &v = a; // { dg-error "invalid initialization of reference of type" } }