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