1 /* { dg-do compile { target powerpc*-*-* } } */
2 /* { dg-require-effective-target powerpc_altivec_ok } */
3 /* { dg-options "-maltivec" } */
9 typedef void (*pvecfunc
) ();
11 void foo(pvecfunc pvf
) {
12 vector
int v
= (vector
int){1, 2, 3, 4};
14 preansi (4, 4.0, v
); /* { dg-error "AltiVec argument passed to unprototyped function" "" { target ilp32 } } */
15 (*pvf
) (4, 4.0, v
); /* { dg-error "AltiVec argument passed to unprototyped function" "" { target ilp32 } } */