gcc/testsuite/c-c++-common/fhardened-3.c
raw| 1 | /* { dg-do compile { target *-*-linux* *-*-gnu* } } */ |
| 2 | /* { dg-options "-fhardened -O0" } */ |
| 3 | /* Test that we don't get any diagnostic coming from libc headers. */ |
| 4 | |
| 5 | #include <stdio.h> |
| 6 | |
| 7 | /* The most useful C program known to man. */ |
| 8 | |
| 9 | int |
| 10 | main () |
| 11 | { |
| 12 | } |
| 13 | |
| 14 | /* { dg-warning "._FORTIFY_SOURCE. is not enabled" "" { target *-*-* } 0 } */ |