diff options
author | Paolo Bonzini <bonzini@gnu.org> | 2007-01-30 08:01:29 +0000 |
---|---|---|
committer | Paolo Bonzini <bonzini@gnu.org> | 2007-01-30 08:01:29 +0000 |
commit | c1d19e10c32844d17122b473840752003521d21b (patch) | |
tree | 86c3334e36727614f3c4eab884524a300675327b /tests | |
parent | 8405b70c057cf1e117e81a77114b055d7c9b59f1 (diff) | |
download | bison-c1d19e10c32844d17122b473840752003521d21b.tar.gz |
2007-01-30 Paolo Bonzini <bonzini@gnu.org>
* data/bison.m4 (b4_percent_define_flag_if): Don't treat 0 as false.
Complain if the value does not match empty, "true" or "false".
* data/c++.m4: Adjust default definitions of %define variables.
* data/java.m4: Adjust default definitions of %define variables.
* doc/bison.texinfo (Decl Summary): Adjust the %define entry according
to above behavior.
* tests/input.at (Boolean %define variables): Test new behavior.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/input.at | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/input.at b/tests/input.at index f24f489c..d21ca41d 100644 --- a/tests/input.at +++ b/tests/input.at @@ -820,3 +820,23 @@ input.y:5.9-16: warning: %define variable `special2' is not used ]]) AT_CLEANUP + +## --------------------------- ## +## Boolean %define variables. ## +## --------------------------- ## + +AT_SETUP([Boolean %define variables]) + +AT_DATA([Input.y], +[[%language "Java" +%define public "maybe" +%define parser_class_name "Input" +%% +start: ; +]]) + +AT_CHECK([[bison Input.y]], [1], [], +[[Input.y: invalid value for %define variable `public' +]]) + +AT_CLEANUP |