PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / gcc.dg / pr25559.c
blob7879a1558b64b7c2b707a5c25b5fbea2ebd0f041
1 /* PR c/25559 */
2 /* { dg-do compile } */
4 #define vs(n) __attribute__((vector_size (n)))
5 int vs (-1) a; /* { dg-warning "attribute ignored" } */
6 int vs (0) b; /* { dg-error "zero vector size" } */
7 int vs (1) c; /* { dg-error "multiple of component size" } */
8 int vs (sizeof (int) / 2) d; /* { dg-error "multiple of component size" } */
9 int vs (sizeof (int)) e;
10 int vs (sizeof (int) * 2) f;