Browse Source

Compile negative test with C++ 98

An attempt to ensure the library can be compiled with a C++ 98 compiler.

Unfortunatelly, GTEST can't be compiled with C++ 98, so only the negative tests are included at this point.
master
Nemanja Trifunovic 5 years ago
parent
commit
2370b95a86
  1. 6
      tests/CMakeLists.txt

6
tests/CMakeLists.txt

@ -28,6 +28,12 @@ target_link_libraries(noexceptionstests PRIVATE
)
target_compile_options(noexceptionstests PUBLIC -fno-exceptions)
set_target_properties(negative
PROPERTIES
CXX_STANDARD 98
CXX_STANDARD_REQUIRED YES
CXX_EXTENSIONS NO)
add_test(negative_test negative ${PROJECT_SOURCE_DIR}/tests/test_data/utf8_invalid.txt)
add_test(cpp11_test cpp11)
add_test(api_test apitests)

Loading…
Cancel
Save