]> git.saurik.com Git - bison.git/blobdiff - tests/regression.at
(_AT_CHECK_PRINTER_AND_DESTRUCTOR,
[bison.git] / tests / regression.at
index 94422bd3e1b3f797e1b24426bce96e6cc59b73be..ebc3e874f83bf7fa75f0b0dbe244a17efcd5938e 100644 (file)
@@ -780,8 +780,11 @@ m4_define([AT_CHECK_DANCER],
 AT_BISON_OPTION_PUSHDEFS([$1])
 _AT_DATA_DANCER_Y([$1])
 AT_CHECK([bison -o dancer.c dancer.y])
-AT_LALR1_CC_IF([AT_COMPILE_CXX([dancer])],
-               [AT_COMPILE([dancer])])
+AT_LALR1_CC_IF(
+  [AT_CHECK([bison -o dancer.cc dancer.y])
+   AT_COMPILE_CXX([dancer])],
+  [AT_CHECK([bison -o dancer.c dancer.y])
+   AT_COMPILE([dancer])])
 AT_PARSER_CHECK([./dancer], 1, [],
 [syntax error, unexpected ':'
 ])