Commit 028aa389 by Nathan Sidwell Committed by Nathan Sidwell

direct2.c: Cope with different bison 'parse' or 'syntax' error messages.

	* gcc.dg/cpp/direct2.c: Cope with different bison 'parse' or
	'syntax' error messages.
	* gcc.dg/cpp/direct2s.c: Likewise.

From-SVN: r89635
parent e2cb732f
2004-10-27 Nathan Sidwell <nathan@codesourcery.com>
* gcc.dg/cpp/direct2.c: Cope with different bison 'parse' or
'syntax' error messages.
* gcc.dg/cpp/direct2s.c: Likewise.
2004-10-26 Geoffrey Keating <geoffk@apple.com>
* gcc.c-torture/compile/20041026-1.c: New.
......
......@@ -12,7 +12,7 @@
HASH include "somerandomfile" /*{ dg-error "stray" "non-include" }*/
/*{ dg-bogus "No such" "don't execute non-include" { target *-*-* } 13 }*/
int resync_parser_1; /*{ dg-error "parse" "" }*/
int resync_parser_1; /*{ dg-error "parse|syntax" "" }*/
HASHINCLUDE <somerandomfile> /*{ dg-error "stray" "non-include 2" }*/
/*{ dg-bogus "No such" "don't execute non-include 2" { target *-*-* } 17 }*/
......@@ -20,13 +20,13 @@ int resync_parser_2;
void g1 ()
{
HASH define X 1 /* { dg-error "stray|undeclared|parse|for each" "# from macro" } */
HASH define X 1 /* { dg-error "stray|undeclared|parse|syntax|for each" "# from macro" } */
int resync_parser_3;
}
void g2 ()
{
HASHDEFINE Y 1 /* { dg-error "stray|undeclared|parse|for each" "#define from macro" } */
HASHDEFINE Y 1 /* { dg-error "stray|undeclared|parse|syntax|for each" "#define from macro" } */
int resync_parser_4;
}
......
......@@ -14,7 +14,7 @@
HASH include "somerandomfile" /*{ dg-error "stray" "non-include" }*/
/*{ dg-bogus "No such" "don't execute non-include" { target *-*-* } 15 }*/
int resync_parser_1; /*{ dg-error "parse" "" }*/
int resync_parser_1; /*{ dg-error "parse|syntax" "" }*/
HASHINCLUDE <somerandomfile> /*{ dg-error "stray" "non-include 2" }*/
/*{ dg-bogus "No such" "don't execute non-include 2" { target *-*-* } 18 }*/
......@@ -22,13 +22,13 @@ int resync_parser_2;
void g1 ()
{
HASH define X 1 /* { dg-error "stray|undeclared|parse|for each" "# from macro" } */
HASH define X 1 /* { dg-error "stray|undeclared|parse|syntax|for each" "# from macro" } */
int resync_parser_3;
}
void g2 ()
{
HASHDEFINE Y 1 /* { dg-error "stray|undeclared|parse|for each" "#define from macro" } */
HASHDEFINE Y 1 /* { dg-error "stray|undeclared|parse|syntax|for each" "#define from macro" } */
int resync_parser_4;
}
......
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