[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 06/10] tests: please clang and use ".cc", not ".c", for C++ input
From: |
Akim Demaille |
Subject: |
[PATCH 06/10] tests: please clang and use ".cc", not ".c", for C++ input |
Date: |
Mon, 8 Apr 2013 20:35:52 +0200 |
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 | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/output.at b/tests/output.at
index 657903a..e45ae48 100644
--- a/tests/output.at
+++ b/tests/output.at
@@ -205,9 +205,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
--
1.8.2
- [PATCH 00/10] {maint} Prepare 2.7.1, Akim Demaille, 2013/04/09
- [PATCH 03/10] lalr1.cc: fix compiler warnings, Akim Demaille, 2013/04/09
- [PATCH 08/10] build: fix VPATH issue, Akim Demaille, 2013/04/09
- [PATCH 06/10] tests: please clang and use ".cc", not ".c", for C++ input,
Akim Demaille <=
- [PATCH 07/10] build: avoid clang's colored diagnostics in the test suite, Akim Demaille, 2013/04/09
- [PATCH 01/10] tests: style changes, Akim Demaille, 2013/04/09
- [PATCH 04/10] skeletons: avoid empty switch constructs, Akim Demaille, 2013/04/09
- [PATCH 10/10] glr.cc: fix a clang warning, Akim Demaille, 2013/04/09
- [PATCH 02/10] yacc.c: do not use __attribute__ unprotected, Akim Demaille, 2013/04/09
- [PATCH 05/10] gnulib: update, Akim Demaille, 2013/04/09
- [PATCH 09/10] maint: update copyright years, Akim Demaille, 2013/04/09