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

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