blob: 906aa197abf71bd2aaa4158e4feb9c0d381de7a9 (
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-require-effective-target powerpc_altivec_ok } */
/* { 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};
#ifndef __LP64__
preansi (4, 4.0, v); /* { dg-error "AltiVec argument passed to unprototyped function" "" { target ilp32 } } */
(*pvf) (4, 4.0, v); /* { dg-error "AltiVec argument passed to unprototyped function" "" { target ilp32 } } */
#endif /* __LP64__ */
}
|