From 0ff67d71d72b7c4ded512a83e7108f101bb3ae51 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 13 Oct 2002 08:39:31 +0000 Subject: [PATCH] (Exotic Dollars): Test for "nonterm: { $$ = 123; } { $$ = $1; };" bug. --- tests/actions.at | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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: -- 2.50.0