projects
/
platform
/
upstream
/
bison.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efcb44d
)
(Exotic Dollars): Test for "nonterm: { $$ = 123; } { $$ = $1; };" bug.
author
Paul Eggert
<eggert@cs.ucla.edu>
Sun, 13 Oct 2002 08:39:31 +0000
(08:39 +0000)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Sun, 13 Oct 2002 08:39:31 +0000
(08:39 +0000)
tests/actions.at
patch
|
blob
|
history
diff --git
a/tests/actions.at
b/tests/actions.at
index
ff23091
..
f26407f
100644
(file)
--- a/
tests/actions.at
+++ b/
tests/actions.at
@@
-103,18
+103,18
@@
AT_DATA([[input.y]],
int val;
};
-%type <val> a_1 a_2 a_
4 a_
5
+%type <val> a_1 a_2 a_5
sum_of_the_five_previous_values
%%
-exp: a_1 a_2 { $<val>$ = 3; } a_4 a_5 sum_of_the_five_previous_values
+exp: a_1 a_2 { $<val>$ = 3; } { $<val>$ = $<val>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: