diff options
Diffstat (limited to 'tests/named-refs.at')
-rw-r--r-- | tests/named-refs.at | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/named-refs.at b/tests/named-refs.at index 8d035189..5f1daa80 100644 --- a/tests/named-refs.at +++ b/tests/named-refs.at @@ -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], [[ |