gcc/testsuite/gcc.dg/format/opt-2.c
raw| 1 | /* Test diagnostics for options used on their own without |
| 2 | -Wformat. -Wformat-nonliteral. */ |
| 3 | /* Origin: Joseph Myers <[email protected]> */ |
| 4 | /* { dg-do compile } */ |
| 5 | /* { dg-options "-Wformat-nonliteral" } */ |
| 6 | |
| 7 | /* { dg-warning "'-Wformat-nonliteral' ignored without '-Wformat'" "ignored" { target *-*-* } 0 } */ |