aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/fhardened-3.c
blob: f2306ca5d336436e95f21fd20aeee6f37df4d07c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile { target *-*-linux* *-*-gnu* } } */
/* { dg-options "-fhardened -O0" } */
/* Test that we don't get any diagnostic coming from libc headers.  */

#include <stdio.h>

/* The most useful C program known to man.  */

int
main ()
{
}

/* { dg-warning "._FORTIFY_SOURCE. is not enabled" "" { target *-*-* } 0 } */