]> git.saurik.com Git - bison.git/blobdiff - tests/conflicts.at
xml: beware of user strings used to give a %prec to rules.
[bison.git] / tests / conflicts.at
index 4c046dc7c5d077416b48ca63998533d941a7e90a..f91be51d3d5413e76006e169a88cef3a82694888 100644 (file)
@@ -600,9 +600,26 @@ input.y: expected 0 reduce/reduce conflicts
 AT_CLEANUP
 
 
-## ------------------------------- ##
-## %no-default-prec without %prec  ##
-## ------------------------------- ##
+## ------------------------- ##
+## %prec with user strings.  ##
+## ------------------------- ##
+
+AT_SETUP([%prec with user string])
+
+AT_DATA([[input.y]],
+[[%%
+exp:
+  "foo" %prec "foo"
+;
+]])
+
+AT_BISON_CHECK([-o input.c input.y])
+AT_CLEANUP
+
+
+## -------------------------------- ##
+## %no-default-prec without %prec.  ##
+## -------------------------------- ##
 
 AT_SETUP([%no-default-prec without %prec])