From 3112e7a82b61724d5a240a60ffeaee613431f85d Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Fri, 2 Nov 2012 18:20:56 +0100 Subject: [PATCH] tests: simplifications * tests/actions.at (Exotic Dollars): Formatting changes. Use AT_FULL_COMPILE. (AT_CHECK_PRINTER_AND_DESTRUCTOR): Remove useless initialization of @$. --- tests/actions.at | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/tests/actions.at b/tests/actions.at index 9ec0237..b2d5e9d 100644 --- a/tests/actions.at +++ b/tests/actions.at @@ -159,8 +159,7 @@ main (void) } ]]) -AT_BISON_CHECK([[-o input.c input.y]]) -AT_COMPILE([[input]]) +AT_FULL_COMPILE([input]) AT_PARSER_CHECK([[./input]], [[0]], [[6 ]]) @@ -305,7 +304,7 @@ line: $$ = -1; V(line, $$, @$, ": "); V('(', $1, @1, " "); - fprintf (stderr, "error (@%d-%d) ", RANGE(@2)); + fprintf (stderr, "error (@%d-%d) ", RANGE (@2)); V(')', $3, @3, "\n"); } ; @@ -595,10 +594,6 @@ AT_DATA_GRAMMAR([[input.y]], [[%error-verbose %debug %locations -%initial-action { - @$.first_line = @$.last_line = 1; - @$.first_column = @$.last_column = 1; -} %{ # include @@ -1237,7 +1232,7 @@ AT_CHECK_ACTION_LOCATIONS([[%printer]]) # Check that we can used qualified $$ (v.g., $$) not only in # rule actions, but also where $$ is valid: %printer and %destructor. # -# FIXME: Not actually checking %desctructor, but it's the same code as +# FIXME: Not actually checking %destructor, but it's the same code as # %printer... # # To do that, use a semantic value that has two fields (sem_type), -- 2.7.4