c++: normalizing ttp constraints [PR115656]
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / altivec-21.c
blob580f989e50ebbfc7f700aabd5f2990e0e956e00e
1 /* { dg-do compile { target powerpc*-*-* } } */
2 /* { dg-options "-maltivec" } */
3 /* { dg-require-effective-target powerpc_altivec } */
5 #include <altivec.h>
7 extern void preansi();
9 typedef void (*pvecfunc) ();
11 void foo(pvecfunc pvf) {
12 vector int v = (vector int){1, 2, 3, 4};
13 #ifndef __LP64__
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 } } */
16 #endif /* __LP64__ */