testsuite: fix dg-require-* order vs dg-additional-sources
[official-gcc.git] / gcc / testsuite / gcc.dg / format / opt-3.c
blob64a924260f4f0d0a375d403a5c10a893afe0952d
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 } */