mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 04:13:03 +00:00
%merge: clearer tests on diagnostics
* tests/glr-regression.at: Use caret errors.
This commit is contained in:
@@ -1675,11 +1675,19 @@ sym3: %merge<merge> { $$ = 0; } ;
|
||||
]])
|
||||
AT_BISON_OPTION_POPDEFS
|
||||
|
||||
AT_BISON_CHECK([[-o glr-regr18.c -rall glr-regr18.y]], 1, [],
|
||||
AT_BISON_CHECK([[-o glr-regr18.c -rall -fcaret glr-regr18.y]], 1, [],
|
||||
[[glr-regr18.y:28.18-24: error: result type clash on merge function 'merge': <type2> != <type1>
|
||||
28 | sym2: sym3 %merge<merge> { $$ = $][1; } ;
|
||||
| ^~~~~~~
|
||||
glr-regr18.y:27.18-24: note: previous declaration
|
||||
27 | sym1: sym2 %merge<merge> { $$ = $][1; } ;
|
||||
| ^~~~~~~
|
||||
glr-regr18.y:29.13-19: error: result type clash on merge function 'merge': <type3> != <type2>
|
||||
29 | sym3: %merge<merge> { $$ = 0; } ;
|
||||
| ^~~~~~~
|
||||
glr-regr18.y:28.18-24: note: previous declaration
|
||||
28 | sym2: sym3 %merge<merge> { $$ = $][1; } ;
|
||||
| ^~~~~~~
|
||||
]])
|
||||
|
||||
AT_CLEANUP
|
||||
|
||||
Reference in New Issue
Block a user