Debian Codegraph @

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

raw
1 /* { dg-do compile { target *-*-linux* *-*-gnu* } } */
2 /* { dg-options "-fhardened -O -D_FORTIFY_SOURCE_ -D_GLIBCXX_ASSERTIONS_" } */
3
4 #ifndef _FORTIFY_SOURCE
5 # error "_FORTIFY_SOURCE disabled when it should not be"
6 #endif
7
8 #ifndef _GLIBCXX_ASSERTIONS
9 # error "_GLIBCXX_ASSERTIONS disabled when it should not be"
10 #endif