]> git.saurik.com Git - bison.git/commitdiff
tests: please clang and use ".cc", not ".c", for C++ input
authorAkim Demaille <akim@lrde.epita.fr>
Mon, 28 Jan 2013 15:50:50 +0000 (16:50 +0100)
committerAkim Demaille <akim@lrde.epita.fr>
Mon, 28 Jan 2013 16:46:13 +0000 (17:46 +0100)
When fed with foo.c, clang++ 3.2 answers:

  clang: error: treating 'c' input as 'c++' when in C++ mode,
                this behavior is deprecated

* tests/output.at (AT_CHECK_OUTPUT_FILE_NAME): Use *.cc and *.hh
for C++.

tests/output.at

index c9f4d5ddff4907ddb33e6fe26435ae2f81bb313b..5f7ff3870d5dac23844f492f9b3d26160e20fa03 100644 (file)
@@ -225,9 +225,9 @@ AT_DATA_GRAMMAR([cxx.y],
 %%
 start: {};
 ]])
-AT_BISON_CHECK([-o "AS_ESCAPE([$1.c])" --defines="AS_ESCAPE([$1.h])" cxx.y])
-AT_CHECK([ls "AS_ESCAPE([$1.c])" "AS_ESCAPE([$1.h])"], [], [ignore])
-AT_COMPILE_CXX([cxx.o], [-c "AS_ESCAPE([$1.c])"])
+AT_BISON_CHECK([-o "AS_ESCAPE([$1.cc])" --defines="AS_ESCAPE([$1.hh])" cxx.y])
+AT_CHECK([ls "AS_ESCAPE([$1.cc])" "AS_ESCAPE([$1.hh])"], [], [ignore])
+AT_COMPILE_CXX([cxx.o], [-c "AS_ESCAPE([$1.cc])"])
 $2
 
 AT_BISON_OPTION_POPDEFS