gcc/testsuite/gcc.dg/pr40340-5.c
raw| 1 | /* PR middle-end/40340 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-O2 -Wall -Wsystem-headers -g -fno-tree-dse" } */ |
| 4 | |
| 5 | #define TEST3 |
| 6 | #include "pr40340.h" |
| 7 | |
| 8 | int |
| 9 | main (void) |
| 10 | { |
| 11 | char buf[4]; |
| 12 | test3 (buf); |
| 13 | return 0; |
| 14 | } |
| 15 | |
| 16 | /* { dg-warning "\\\[-Warray-bounds|-Wstringop-overflow" "" { target *-*-* } 10 } */ |
| 17 | /* { dg-message "file included" "In file included" { target *-*-* } 0 } */ |