summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/altivec-17.c
blob: 8b1083268624ad4c537e829742c9a33392c7daa6 (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-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -mabi=altivec" } */

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