Commit 65661a72 by Joseph Myers Committed by Joseph Myers

* gcc.dg/format-errmk-1.c: New test.

From-SVN: r36491
parent 99303ae4
2000-09-18 Joseph S. Myers <jsm28@cam.ac.uk>
* gcc.dg/format-errmk-1.c: New test.
2000-09-17 Greg McGary <greg@mcgary.org>
* gcc.c-torture/execute/20000917-1.x: Remove.
......
/* Test for format checking not giving tree checking errors. */
/* Origin: Joseph Myers <jsm28@cam.ac.uk> */
/* { dg-do compile } */
/* { dg-options "-Wformat" } */
extern int printf (const char *, ...);
void
foo (int t)
{
printf ("%*d", u, t); /* { dg-error "undeclared|function" "u undeclared error" } */
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment