From e83077c617933691de5def479d8716a51606511f Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Sun, 12 Jan 2020 17:27:16 +0100 Subject: [PATCH] yacc.c: check custom error messages with parse-params * tests/calc.at: Check with prefix and parse-params. --- tests/calc.at | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/calc.at b/tests/calc.at index 0ed9709c..a7283840 100644 --- a/tests/calc.at +++ b/tests/calc.at @@ -788,7 +788,8 @@ AT_CHECK_CALC_LALR([%no-lines %define api.pure %define parse.error verbose %debu AT_CHECK_CALC_LALR([%define parse.error custom]) -AT_CHECK_CALC_LALR([%define parse.error custom %locations]) +AT_CHECK_CALC_LALR([%define parse.error custom %locations %define api.prefix {calc}]) +AT_CHECK_CALC_LALR([%define parse.error custom %locations %define api.prefix {calc} %parse-param {semantic_value *result}{int *count}]) # ----------------------- # # Simple GLR Calculator. #