Enable C in test/CMakeLists.txt; add int main() {} to quick.cpp

This commit is contained in:
Peter Dimov
2020-01-05 05:07:08 +02:00
parent 1ab9385a91
commit 728c71ba75
2 changed files with 6 additions and 0 deletions

View File

@ -8,6 +8,8 @@ if(NOT HAVE_BOOST_TEST)
return() return()
endif() 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_common arithmetic array comparison control debug facilities list logical punctuation selection seq slot stringize tuple variadic isempty)
set(tests_c ${tests_common}) set(tests_c ${tests_common})
set(tests_cpp ${tests_common} iteration repetition quick) set(tests_cpp ${tests_common} iteration repetition quick)

View File

@ -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(2, 1) == 1 END
BEGIN BOOST_PP_GREATER_EQUAL(1, 2) == 0 END BEGIN BOOST_PP_GREATER_EQUAL(1, 2) == 0 END
BEGIN BOOST_PP_GREATER_EQUAL(2, 2) == 1 END BEGIN BOOST_PP_GREATER_EQUAL(2, 2) == 1 END
int main()
{
}