OSDN Git Service

PR target/21017
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.target / powerpc / pr16155.c
1 /* { dg-do compile { target powerpc*-*-* } } */
2 /* { dg-xfail-if "" { "powerpc-*-eabispe*" "powerpc-ibm-aix*" } { "*" } { "" } } */
3 /* { dg-options "-maltivec -ansi" } */
4
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  */
9
10 #include <altivec.h>
11
12 void foo(void)
13 {
14   vector unsigned short a, b;
15   a = vec_splat(b, 0);
16 }
17
18 /* { dg-bogus "parse error before \"typeof\"" "-maltivec -mansi" { target powerpc*-*-* } 0 } */