test location_type.

* tests/local.at (_AT_BISON_OPTION_PUSHDEFS):
	Define AT_LOCATION_TYPE_IF.
	(_AT_BISON_OPTION_POPDEFS): Undefine AT_LOCATION_TYPE_IF.
	* tests/calc.at (_AT_DATA_CALC_Y): When %define location_type is
	used, provide a user location type and use it.
	(Simple LALR1 C++ Calculator): Add a test case for location_type.

(cherry picked from commit 24bb8c8c25)

Conflicts:

	tests/calc.at
This commit is contained in:
Akim Demaille
2010-04-13 22:05:42 +02:00
parent 2f61c4a2d0
commit cacfdef716
3 changed files with 61 additions and 13 deletions

View File

@@ -1,3 +1,13 @@
2010-04-13 Akim Demaille <demaille@gostai.com>
test location_type.
* tests/local.at (_AT_BISON_OPTION_PUSHDEFS):
Define AT_LOCATION_TYPE_IF.
(_AT_BISON_OPTION_POPDEFS): Undefine AT_LOCATION_TYPE_IF.
* tests/calc.at (_AT_DATA_CALC_Y): When %define location_type is
used, provide a user location type and use it.
(Simple LALR1 C++ Calculator): Add a test case for location_type.
2010-04-13 Akim Demaille <demaille@gostai.com>
tests: check fclose's return value.