* ubsan.c (ubsan_expand_null_ifn): Use _v1 suffixed type mismatch
[official-gcc.git] / gcc / testsuite / c-c++-common / vector-2.c
blobe9f40a35892502215d35a7e453a9acc05af5de32
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 int 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;