X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/417141dd6134bdb32a1a7d64b2bac4f8bcca0461..a5eb1ed262e86657c5af95e4a8eae258a2e49e4b:/tests/actions.at diff --git a/tests/actions.at b/tests/actions.at index 1e8d62f4..e8124e9e 100644 --- a/tests/actions.at +++ b/tests/actions.at @@ -342,8 +342,12 @@ m4_ifval([$6], , [#define YYSTYPE int])]) ]m4_ifval([$6], [%type 'x' ';' thing line input])[ -%printer { fprintf (yyoutput, "%d@%d-%d", $$, RANGE (@$)); } - input line thing 'x' +%printer + { + ]AT_LALR1_CC_IF([cdebug_ << @$ << ": " << $$;], + [fprintf (yyoutput, "%d@%d-%d", $$, RANGE (@$))])[; + } + input line thing 'x' %destructor { printf ("Freeing nterm input (%d@%d-%d)\n", $$, RANGE (@$)); }