]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/format/opt-2.c
Wrap option names in gcc internal messages with %< and %>.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / format / opt-2.c
1 /* Test diagnostics for options used on their own without
2 -Wformat. -Wformat-nonliteral. */
3 /* Origin: Joseph Myers <joseph@codesourcery.com> */
4 /* { dg-do compile } */
5 /* { dg-options "-Wformat-nonliteral" } */
6
7 /* { dg-warning "'-Wformat-nonliteral' ignored without '-Wformat'" "ignored" { target *-*-* } 0 } */