diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2021-08-11 17:41:27 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2021-08-11 18:01:12 +0200 |
commit | c2ba260487927a4cdf061fae10fdd1b387ca3d95 (patch) | |
tree | e445a38751b42239905b537cdded5af1d8993de3 /tests | |
parent | e4e3cbce774af6c407e5cb699a8227ef213d54a1 (diff) | |
download | bison-c2ba260487927a4cdf061fae10fdd1b387ca3d95.tar.gz |
glr.c: fix signature when using custom error messages
Reported by Tom Shields <thomas.evans.shields@icloud.com>.
* data/skeletons/glr.c (yypcontext_location): Fix return type.
* tests/calc.at: Check the case pure, location, custom error messages.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/calc.at | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/calc.at b/tests/calc.at index cd4b50a1..47ef720c 100644 --- a/tests/calc.at +++ b/tests/calc.at @@ -1469,6 +1469,8 @@ AT_CHECK_CALC_GLR_CC([%debug]) AT_CHECK_CALC_GLR_CC([%define parse.error verbose %debug %name-prefix "calc" %verbose]) AT_CHECK_CALC_GLR_CC([%define parse.error verbose %debug %name-prefix "calc" %define api.token.prefix {TOK_} %verbose]) +AT_CHECK_CALC_GLR_CC([%define parse.error custom %locations %header %name-prefix "calc" %verbose]) + AT_CHECK_CALC_GLR_CC([%locations %header %define parse.error verbose %debug %name-prefix "calc" %verbose %parse-param {semantic_value *result}{int *count}{int *nerrs}]) AT_CHECK_CALC_GLR_CC([%locations %header %define parse.error verbose %debug %define api.prefix {calc} %verbose %parse-param {semantic_value *result}{int *count}{int *nerrs}]) |