blob: 4e4131f0bdd93ceefce4cba74e502f329a46bf14 (
plain)
1
2
3
4
5
6
7
8
9
|
/* { dg-do compile { target *-*-linux* *-*-gnu* } } */
/* { dg-options "-fhardened -U_FORTIFY_SOURCE -U_GLIBCXX_ASSERTIONS" } */
#if defined(_FORTIFY_SOURCE) || defined(_GLIBCXX_ASSERTIONS)
# error "hardening enabled when it should not be"
#endif
/* { dg-warning "._FORTIFY_SOURCE. is not enabled" "" { target *-*-* } 0 } */
/* { dg-warning "._GLIBCXX_ASSERTIONS. is not enabled" "" { target *-*-* } 0 } */
|