summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/format/opt-3.c
blob: 03f55e4367f3f3fe0346bc29f59d96f9e6897deb (plain)
1
2
3
4
5
6
7
/* Test diagnostics for options used on their own without
   -Wformat.  -Wformat-security.  */
/* Origin: Joseph Myers <joseph@codesourcery.com> */
/* { dg-do compile } */
/* { dg-options "-Wformat-security" } */

/* { dg-warning "-Wformat-security ignored without -Wformat" "ignored" { target *-*-* } 0 } */