OSDN Git Service

2005-11-03 James E Wilson <wilson@specifix.com>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / pr16155.c
1 /* { dg-do compile { target powerpc*-*-* } } */
2 /* { dg-options "-maltivec -ansi" } */
3
4 /* PR 16155
5  * Compilation of a simple altivec test program fails if the -ansi flag is
6  * given to gcc, when compiling with -maltivec.
7  */
8
9 #include <altivec.h>
10
11 void foo(void)
12 {
13   vector unsigned short a, b;
14   a = vec_splat(b, 0);
15 }
16
17 /* { dg-bogus "parse error before \"typeof\"" "-maltivec -mansi" { target powerpc*-*-* } 0 } */