Debian Codegraph @

gcc/testsuite/c-c++-common/fhardened-1.c

raw
1 /* { dg-do compile { target *-*-linux* *-*-gnu* } } */
2 /* { dg-options "-fhardened -O" } */
3
4 #if !defined(__SSP_STRONG__) && !defined(__hppa__)
5 # error "-fstack-protector-strong not enabled"
6 #endif
7
8 #if _FORTIFY_SOURCE < 2
9 # error "_FORTIFY_SOURCE not enabled"
10 #endif
11
12 #ifndef _GLIBCXX_ASSERTIONS
13 # error "_GLIBCXX_ASSERTIONS not enabled"
14 #endif