[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/6] tests: please clang and use ".cc", not ".c", for C++ input
From: |
Akim Demaille |
Subject: |
[PATCH 2/6] tests: please clang and use ".cc", not ".c", for C++ input |
Date: |
Mon, 28 Jan 2013 17:48:15 +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 | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/output.at b/tests/output.at
index c9f4d5d..5f7ff38 100644
--- a/tests/output.at
+++ b/tests/output.at
@@ -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
--
1.8.1.1
- [PATCH 0/6] {master} tests: various improvements and fixes, Akim Demaille, 2013/01/28
- [PATCH 3/6] news: minor improvements, Akim Demaille, 2013/01/28
- [PATCH 6/6] maint: fix syntax-check issues, Akim Demaille, 2013/01/28
- [PATCH 4/6] maint: update todo, Akim Demaille, 2013/01/28
- [PATCH 2/6] tests: please clang and use ".cc", not ".c", for C++ input,
Akim Demaille <=
- [PATCH 5/6] tests: please C90 compilers, Akim Demaille, 2013/01/28
- [PATCH 1/6] tests: formatting changes, Akim Demaille, 2013/01/28