aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/pr16155.c
blob: df06e702d0597839f5d0c4a6d3897db72749387b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-*-eabispe*" "powerpc-ibm-aix*" } { "*" } { "" } } */
/* { dg-options "-maltivec -ansi" } */

/* PR 16155
 * Compilation of a simple altivec test program fails if the -ansi flag is
 * given to gcc, when compiling with -maltivec.
 */

#include <altivec.h>

void foo(void)
{
  vector unsigned short a, b;
  a = vec_splat(b, 0);
}

/* { dg-bogus "parse error before \"typeof\"" "-maltivec -mansi" { target powerpc*-*-* } 0 } */