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
This commit is contained in:
parent
e2cb732fcb
commit
028aa38946
3 changed files with 12 additions and 6 deletions
|
@ -1,3 +1,9 @@
|
|||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue