Merged with mainline at revision 128810.
[official-gcc.git] / gcc / testsuite / gcc.dg / format / opt-3.c
blob03f55e4367f3f3fe0346bc29f59d96f9e6897deb
1 /* Test diagnostics for options used on their own without
2 -Wformat. -Wformat-security. */
3 /* Origin: Joseph Myers <joseph@codesourcery.com> */
4 /* { dg-do compile } */
5 /* { dg-options "-Wformat-security" } */
7 /* { dg-warning "-Wformat-security ignored without -Wformat" "ignored" { target *-*-* } 0 } */