]> git.saurik.com Git - bison.git/blobdiff - tests/input.at
variables: simplify the upgrade of namespace into api.namespace.
[bison.git] / tests / input.at
index 146d5818c59ccdc7a4eabecfe23eb0dcb54d6a7a..810e7601a6bc6d71b89d7b21ed58f0e4d25d7c88 100644 (file)
@@ -1055,6 +1055,17 @@ AT_BISON_CHECK([[input.y]], [1], [],
 [[input.y:1.9-34: invalid value for %define Boolean variable `lr.keep-unreachable-states'
 ]])
 
+AT_DATA([[input.y]],
+[[%define namespace "foo"
+%define api.namespace "foo"
+%%
+start: ;
+]])
+AT_BISON_CHECK([[input.y]], [1], [],
+[[input.y:2.9-21: %define variable `api.namespace' redefined
+input.y:1.9-17: previous definition
+]])
+
 AT_DATA([[input.y]],
 [[%define foo_bar "baz"
 %%