1 /* { dg-do compile } */
3 /* Test overload resolution of vector types.
4 From Janis Johnson and Paolo Bonzini, based on PR/16882 */
6 #define vector __attribute__((vector_size(16)))
8 vector signed int vld (int a1, const vector signed int *a2) { return *a2; } /* { dg-error "near match" } */
9 /* { dg-warning "vector returned by ref" "" { target { powerpc*-*-linux* && ilp32 } } 8 } */
10 vector signed short vld (int a1, const vector signed short *a2) { return *a2; } /* { dg-error "near match" } */
13 extern vector signed short vss;
14 extern vector signed char *vscp;
15 extern vector signed short *vssp;
16 extern const vector signed short *cvssp;
20 vss = vld(i, vscp); /* { dg-error "no match" } */