PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / c-c++-common / vector-2.c
blob9db53a88c5f7c484ade84ed2a296c5a03a04ff17
1 /* { dg-do compile } */
2 /* { dg-options "" } */
4 /* Check for application of |, ^, and & on vector types. */
5 #define vector __attribute__((vector_size(16) ))
7 vector float a;
8 vector int a1;
9 vector float b;
10 vector int b1;
12 void f(void)
14 a = a | b; /* { dg-error "" } */
15 a = a & b; /* { dg-error "" } */
16 a = a ^ b; /* { dg-error "" } */
17 a1 = a1 | b1;
18 a1 = a1 & b1;
19 a1 = a1 ^ b1;