aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/fhardened-1.c
blob: 23478be76b24b22097baef1098681f0bd91a391a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile { target *-*-linux* *-*-gnu* } } */
/* { dg-options "-fhardened -O" } */

#if !defined(__SSP_STRONG__) && !defined(__hppa__)
# error "-fstack-protector-strong not enabled"
#endif

#if _FORTIFY_SOURCE < 2
# error "_FORTIFY_SOURCE not enabled"
#endif

#ifndef _GLIBCXX_ASSERTIONS
# error "_GLIBCXX_ASSERTIONS not enabled"
#endif