From: Paul Eggert Date: Sun, 13 Oct 2002 08:39:31 +0000 (+0000) Subject: (Exotic Dollars): Test for "nonterm: { $$ = 123; } { $$ = $1; };" bug. X-Git-Tag: BISON-1_75~25 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/0ff67d71d72b7c4ded512a83e7108f101bb3ae51?ds=inline (Exotic Dollars): Test for "nonterm: { $$ = 123; } { $$ = $1; };" bug. --- diff --git a/tests/actions.at b/tests/actions.at index ff230918..f26407fe 100644 --- a/tests/actions.at +++ b/tests/actions.at @@ -103,18 +103,18 @@ AT_DATA([[input.y]], int val; }; -%type a_1 a_2 a_4 a_5 +%type a_1 a_2 a_5 sum_of_the_five_previous_values %% -exp: a_1 a_2 { $$ = 3; } a_4 a_5 sum_of_the_five_previous_values +exp: a_1 a_2 { $$ = 3; } { $$ = $3 + 1; } a_5 + sum_of_the_five_previous_values { printf ("%d\n", $6); } ; a_1: { $$ = 1; }; a_2: { $$ = 2; }; -a_4: { $$ = 4; }; a_5: { $$ = 5; }; sum_of_the_five_previous_values: