* gcc.dg/cpp/separate-1.c: New test.

From-SVN: r70147
This commit is contained in:
Alexandre Oliva 2003-08-04 16:49:28 +00:00 committed by Alexandre Oliva
parent 4e87a65138
commit b5d72edad6
2 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2003-08-04 Alexandre Oliva <aoliva@redhat.com>
* gcc.dg/cpp/separate-1.c: New test.
2003-08-03 Nathan Sidwell <nathan@codesourcery.com>
PR c++/11704

View File

@ -0,0 +1,12 @@
/* Copyright 2003 Free Software Foundation. */
/* { dg-do compile } */
/* { dg-options "-save-temps" } */
/* Make sure we report errors in the right line, even if separate
preprocessing is used. */
#define FOO()
int FOO(
), bar; /* { dg-error "(parse|syntax) error" "error on this line" } */