Commit 1b398090 by Joseph Myers Committed by Jeff Law

* gcc.dg/c90-impl-int-2.c, gcc.dg/c99-impl-int-2.c: New tests.

From-SVN: r35291
parent 3dc8d169
2000-07-25 Joseph S. Myers <jsm28@cam.ac.uk>
* gcc.dg/c90-impl-int-2.c, gcc.dg/c99-impl-int-2.c: New tests.
Wed Jul 26 19:41:51 2000 Hans-Peter Nilsson <hp@axis.com>
* gcc.c-tortuer/execute/20000726-1.c: New test.
......
/* Test for implicit int: in C90 only. Function parameters in old-style
function definition.
*/
/* Origin: Joseph Myers <jsm28@cam.ac.uk> */
/* { dg-do compile } */
/* { dg-options "-std=iso9899:1990 -pedantic-errors" } */
void foo (a) { }
/* Test for implicit int: in C90 only. Function parameters in old-style
function definition.
*/
/* Origin: Joseph Myers <jsm28@cam.ac.uk> */
/* { dg-do compile } */
/* { dg-options "-std=iso9899:1999 -pedantic-errors" } */
void foo (a) { } /* { dg-bogus "warning" "warning in place of error" } */
/* { dg-error "defaults" "C99 implicit int parameter error" { target *-*-* } 8 } */
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