PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / c-c++-common / pr84999.c
blob42d53769a3b9ec2141dc3769d06c5914b9543494
1 /* PR c/84999 */
2 /* { dg-do compile { target { i?86-*-* x86_64-*-* } } } */
3 /* { dg-options "" } */
5 typedef __float128 V __attribute__ ((__vector_size__ (2 * sizeof (__float128))));
6 V a;
7 typeof (a != 0) b; /* { dg-error "could not find an integer type of the same size as" "" { target ia32 } } */
8 typeof (a == 0) c; /* { dg-error "could not find an integer type of the same size as" "" { target ia32 } } */
9 typeof (a < 0) d; /* { dg-error "could not find an integer type of the same size as" "" { target ia32 } } */
10 typeof (a <= 0) e; /* { dg-error "could not find an integer type of the same size as" "" { target ia32 } } */
11 typeof (a > 0) f; /* { dg-error "could not find an integer type of the same size as" "" { target ia32 } } */
12 typeof (a >= 0) g; /* { dg-error "could not find an integer type of the same size as" "" { target ia32 } } */