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

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