summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/format/opt-1.c
blob: f8f3704480b0e2ddd48342441677f812691ba44c (plain)
1
2
3
4
5
6
7
/* Test diagnostics for options used on their own without
   -Wformat.  -Wformat-extra-args.  */
/* Origin: Joseph Myers <joseph@codesourcery.com> */
/* { dg-do compile } */
/* { dg-options "-Wformat-extra-args" } */

/* { dg-warning "-Wformat-extra-args ignored without -Wformat" "ignored" { target *-*-* } 0 } */