aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/altivec-1.C
blob: 6bda7094db0146e60946599723c0cde8073e9ca2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* APPLE LOCAL file AltiVec */
/* Test for static_cast<...> among AltiVec types.  */
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-options "-faltivec" } */

struct Foo2 {
    vector unsigned int	vui;
    vector signed int As_vsi() { 
      return static_cast<vector signed int>(vui);  /* { dg-bogus "invalid static_cast" } */
    }
};