diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/format/opt-3.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/format/opt-3.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/format/opt-3.c b/gcc/testsuite/gcc.dg/format/opt-3.c new file mode 100644 index 0000000..7722172 --- /dev/null +++ b/gcc/testsuite/gcc.dg/format/opt-3.c @@ -0,0 +1,7 @@ +/* Test diagnostics for options used on their own without + -Wformat. -Wformat-security. */ +/* Origin: Joseph Myers <joseph@codesourcery.com> */ +/* { dg-do compile } */ +/* { dg-options "-Wformat-security" } */ + +/* { dg-warning "warning: -Wformat-security ignored without -Wformat" "ignored" { target *-*-* } 0 } */ |