mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
tests: prefer %empty
* tests/regression.at: here.
This commit is contained in:
@@ -1325,9 +1325,9 @@ S: A B A A B A A A A B A A A A A A A B C C A A A A A A A A A A A A B ;
|
||||
// ^ ^ ^
|
||||
// LAC reallocs
|
||||
|
||||
A: 'a' | /*empty*/ { printf ("inconsistent default reduction\n"); } ;
|
||||
A: 'a' | %empty { printf ("inconsistent default reduction\n"); } ;
|
||||
B: 'b' ;
|
||||
C: /*empty*/ { printf ("consistent default reduction\n"); } ;
|
||||
C: %empty { printf ("consistent default reduction\n"); } ;
|
||||
|
||||
%%
|
||||
]AT_YYERROR_DEFINE[
|
||||
@@ -1405,7 +1405,7 @@ AT_DATA_GRAMMAR([input.y],
|
||||
%%
|
||||
|
||||
S: A A A A A A A A A ;
|
||||
A: /*empty*/ | 'a' ;
|
||||
A: %empty | 'a' ;
|
||||
|
||||
%%
|
||||
]AT_YYERROR_DEFINE[
|
||||
|
||||
Reference in New Issue
Block a user