AVR: Make gcc.dg/c23-stdarg-9.c work.
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr16155.c
blob0b2dfb220e89176a481e8c593c65bd42356e99d5
1 /* { dg-do compile { target powerpc*-*-* } } */
2 /* { dg-options "-maltivec -ansi" } */
3 /* { dg-require-effective-target powerpc_altivec } */
5 /* PR 16155
6 * Compilation of a simple altivec test program fails if the -ansi flag is
7 * given to gcc, when compiling with -maltivec.
8 */
10 #include <altivec.h>
12 void foo(void)
14 vector unsigned short a, b;
15 a = vec_splat(b, 0);
18 /* { dg-bogus "parse error before \"typeof\"" "-maltivec -mansi" { target powerpc*-*-* } 0 } */