summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/altivec-17.c
blob: 463062ef0866bee6c52a01110fd7c47abddab6b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* Verify a statement in the GCC Manual that GCC allows the use of a
   typedef name as a vector type specifier.  */

/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
/* { dg-options "-maltivec -mabi=altivec" } */

typedef unsigned int ui;
typedef signed char sc;
__vector ui vui;
__vector sc vsc;