From 728c71ba753dc4e691a4a8f6a42e15df5a6c5ea3 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 5 Jan 2020 05:07:08 +0200 Subject: [PATCH] Enable C in test/CMakeLists.txt; add `int main() {}` to quick.cpp --- test/CMakeLists.txt | 2 ++ test/quick.cpp | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index f1028ba..aba5bf5 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -8,6 +8,8 @@ if(NOT HAVE_BOOST_TEST) return() endif() +enable_language(C) + set(tests_common arithmetic array comparison control debug facilities list logical punctuation selection seq slot stringize tuple variadic isempty) set(tests_c ${tests_common}) set(tests_cpp ${tests_common} iteration repetition quick) diff --git a/test/quick.cpp b/test/quick.cpp index 1eaac11..73372a3 100644 --- a/test/quick.cpp +++ b/test/quick.cpp @@ -37,3 +37,7 @@ BEGIN BOOST_PP_GREATER(1, 2) == 0 END BEGIN BOOST_PP_GREATER_EQUAL(2, 1) == 1 END BEGIN BOOST_PP_GREATER_EQUAL(1, 2) == 0 END BEGIN BOOST_PP_GREATER_EQUAL(2, 2) == 1 END + +int main() +{ +}