blob: eefbbb9ef70bb2b1b10453ef7774ce80a2db7f24 [file] [log] [blame]
/* APPLE LOCAL file Altivec */
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc*-*-*" } { "-m64" } { "" } } */
/* { dg-options "-maltivec" } */
#include <altivec.h>
extern void preansi();
typedef void (*pvecfunc) ();
void foo(pvecfunc pvf) {
vector int v = (vector int){1, 2, 3, 4};
preansi (4, 4.0, v); /* { dg-error "AltiVec argument passed to unprototyped function" } */
}