[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gcc.dg / vec-andxor1.c
blob4aa454e663bcdbdf803ce66c69e7a5bb845d9348
1 /* { dg-do run } */
2 /* { dg-options "-O" } */
4 typedef int vec __attribute__((vector_size(4*sizeof(int))));
6 __attribute__((noinline,noclone))
7 void f (vec *x) {
8 *x = (*x & 1) ^ 1;
11 int main() {
12 vec x = { 1, 2, 3, 4 };
13 f(&x);
14 if (x[0] != 0 || x[1] != 1)
15 __builtin_abort();
16 return 0;