PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / gcc.dg / Warray-bounds-7.c
bloba32492ccc7aa0f5e6472e6c0f9113fb66136ca7e
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -Warray-bounds" } */
4 char *p;
6 int main()
8 p = "";
9 if (p[0] == 0
10 || (p[0] == '_' && p[1] == 0)) /* { dg-bogus "array bounds" } */
11 return 0;
12 return 1;