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

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