aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp
diff options
context:
space:
mode:
authorPaolo Carlini <pcarlini@unitus.it>2003-01-25 15:39:11 +0100
committerPaolo Carlini <paolo@gcc.gnu.org>2003-01-25 14:39:11 +0000
commit32d9a5bd17867f04a956b2539304982568f28090 (patch)
tree6b9b8f1b470d8d838c2803fa2efdd59e70da59f6 /gcc/testsuite/gcc.dg/cpp
parent27a6aa72db18e4db31d278e2c215f2e97003fed9 (diff)
downloadgcc-32d9a5bd17867f04a956b2539304982568f28090.zip
gcc-32d9a5bd17867f04a956b2539304982568f28090.tar.gz
gcc-32d9a5bd17867f04a956b2539304982568f28090.tar.bz2
Tweaks for Bison-1.875.
2003-01-25 Paolo Carlini <pcarlini@unitus.it> Tweaks for Bison-1.875. From the NEWS file: "- `parse error' -> `syntax error' Bison now uniformly uses the term `syntax error'" * gcc.dg/cpp/19990413-1.c: Test for "(parse|syntax) error". * gcc.dg/cpp/digraph2.c: Likewise. * gcc.dg/cpp/direct2.c: Likewise. * gcc.dg/cpp/paste4.c: Likewise. * gcc.dg/c90-restrict-1.c: Likewise. * gcc.dg/c99-func-2.c: Likewise. * gcc.dg/noncompile/920721-2.c: Likewise. * gcc.dg/noncompile/930622-2.c: Likewise. * gcc.dg/noncompile/940112-1.c: Likewise. * gcc.dg/noncompile/950921-1.c: Likewise. * gcc.dg/noncompile/951123-1.c: Likewise. * gcc.dg/noncompile/971104-1.c: Likewise. * gcc.dg/noncompile/990416-1.c: Likewise. From-SVN: r61768
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp')
-rw-r--r--gcc/testsuite/gcc.dg/cpp/19990413-1.c2
-rw-r--r--gcc/testsuite/gcc.dg/cpp/digraph2.c2
-rw-r--r--gcc/testsuite/gcc.dg/cpp/direct2.c2
-rw-r--r--gcc/testsuite/gcc.dg/cpp/paste4.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp/19990413-1.c b/gcc/testsuite/gcc.dg/cpp/19990413-1.c
index 9abddb9..22fc5db 100644
--- a/gcc/testsuite/gcc.dg/cpp/19990413-1.c
+++ b/gcc/testsuite/gcc.dg/cpp/19990413-1.c
@@ -9,5 +9,5 @@ func(void)
{
FOO(i
= 4)
- else; /* { dg-error "parse error" "error on this line" { target *-*-* } { 12 } } */
+ else; /* { dg-error "(parse|syntax) error" "error on this line" { target *-*-* } { 12 } } */
}
diff --git a/gcc/testsuite/gcc.dg/cpp/digraph2.c b/gcc/testsuite/gcc.dg/cpp/digraph2.c
index e67ec53..cac4e25 100644
--- a/gcc/testsuite/gcc.dg/cpp/digraph2.c
+++ b/gcc/testsuite/gcc.dg/cpp/digraph2.c
@@ -9,7 +9,7 @@
int main (int argc, char *argv[])
{
return 0;
-%> /* { dg-error "parse error" } */
+%> /* { dg-error "(parse|syntax) error" } */
/* Place this after main () so we get to test both the compiler above
and the preprocessor below. */
diff --git a/gcc/testsuite/gcc.dg/cpp/direct2.c b/gcc/testsuite/gcc.dg/cpp/direct2.c
index d6dc108..52d1e31 100644
--- a/gcc/testsuite/gcc.dg/cpp/direct2.c
+++ b/gcc/testsuite/gcc.dg/cpp/direct2.c
@@ -33,5 +33,5 @@ void f ()
#define slashstar /##*
#define starslash *##/
-slashstar starslash /* { dg-error "parse error" "not a comment" } */
+slashstar starslash /* { dg-error "(parse|syntax) error" "not a comment" } */
/* { dg-warning "does not give" "paste warning(s)" { target *-*-* } 36 } */
diff --git a/gcc/testsuite/gcc.dg/cpp/paste4.c b/gcc/testsuite/gcc.dg/cpp/paste4.c
index 2215b34..4e575c2 100644
--- a/gcc/testsuite/gcc.dg/cpp/paste4.c
+++ b/gcc/testsuite/gcc.dg/cpp/paste4.c
@@ -11,6 +11,6 @@
int main ()
{
- double d = glue (1.0e, +1); /* { dg-error "exponent|parse error" } */
+ double d = glue (1.0e, +1); /* { dg-error "exponent|(parse|syntax) error" } */
return 0;
}