PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / gcc.dg / pr40340-4.c
blob695d0acbee03eede6cc85a47388fbafdfc29eb0b
1 /* PR middle-end/40340 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -Wall -Wno-system-headers -g" } */
5 #define TEST3
6 #include "pr40340.h"
8 int
9 main (void)
11 char buf[4];
12 test3 (buf);
13 return 0;
16 /* { dg-bogus "overflow" "" { target *-*-* } 10 } */