]> git.saurik.com Git - bison.git/blobdiff - tests/calc.at
* tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
[bison.git] / tests / calc.at
index 2031154ebb17a2f1a37d1ab837006b822769c918..e038eb28831fd6319d31c1539ed03623c6411224 100644 (file)
@@ -245,7 +245,7 @@ AT_DEFINE([AT_DATA_CALC_Y],
 [_AT_DATA_CALC_Y($[1], $[2], $[3],
                  [ifelse(regexp([$1], [--yyerror-verbose]),
                          [-1], [],
-                         [[#define YYERROR_VERBOSE]])])])
+                         [[#define YYERROR_VERBOSE 1]])])])
 
 
 
@@ -293,7 +293,7 @@ AT_DATA_CALC_Y([$1])
 # Specify the output files to avoid problems on different file systems.
 AT_CHECK([bison calc.y -o calc.c patsubst([$1], [--yyerror-verbose])],
          [0], [], [])
-AT_CHECK([$CC $CFLAGS calc.c -o calc], 0, [], [])
+AT_CHECK([$CC $CFLAGS $CPPFLAGS calc.c -o calc], 0, [], [])
 
 # Test the priorities.
 _AT_CHECK_CALC([$1],