X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/17d7bf83d02e2272c54d3486075091156d5d649f..2a2b7485698370ef54856a4dafd5283042fd4665:/tests/named-refs.at?ds=sidebyside diff --git a/tests/named-refs.at b/tests/named-refs.at index 8d035189..3fac77b0 100644 --- a/tests/named-refs.at +++ b/tests/named-refs.at @@ -44,7 +44,7 @@ int yylex (void); %token NUM "number" %type exp -%nonassoc '=' /* comparison */ +%nonassoc '=' /* comparison */ %left '-' '+' %left '*' '/' %precedence NEG /* negation--unary minus */ @@ -215,7 +215,7 @@ int yylex (void); %token NUM "number" %type exp -%nonassoc '=' /* comparison */ +%nonassoc '=' /* comparison */ %left '-' '+' %left '*' '/' %precedence NEG /* negation--unary minus */ @@ -472,6 +472,19 @@ AT_CLEANUP ####################################################################### +# Bison used to free twice the named ref for "a", since a single copy +# was used in two rules. +AT_SETUP([Factored LHS]) +AT_DATA_GRAMMAR([test.y], +[[ +%% +start[a]: "foo" | "bar"; +]]) +AT_BISON_CHECK([-o test.c test.y]) +AT_CLEANUP + +####################################################################### + AT_SETUP([Unresolved references]) AT_DATA_GRAMMAR([test.y], [[