onqtam | b43aa04 | 2017-03-13 19:04:08 +0200 | [diff] [blame] | 1 | #define DOCTEST_CONFIG_IMPLEMENTATION_IN_DLL |
ncihnegn | c5458f2 | 2019-01-28 05:08:18 -0800 | [diff] [blame] | 2 | #include <doctest/doctest.h> |
onqtam | b43aa04 | 2017-03-13 19:04:08 +0200 | [diff] [blame] | 3 | |
onqtam | abf39d2 | 2017-10-28 21:30:45 +0300 | [diff] [blame] | 4 | DOCTEST_MAKE_STD_HEADERS_CLEAN_FROM_WARNINGS_ON_WALL_BEGIN |
Stefan | 58f3ec8 | 2022-01-13 21:03:37 +0100 | [diff] [blame^] | 5 | #include <iostream> |
onqtam | abf39d2 | 2017-10-28 21:30:45 +0300 | [diff] [blame] | 6 | DOCTEST_MAKE_STD_HEADERS_CLEAN_FROM_WARNINGS_ON_WALL_END |
onqtam | 4a65563 | 2016-05-26 14:20:52 +0300 | [diff] [blame] | 7 | |
| 8 | TEST_CASE("dll") { |
Stefan | 58f3ec8 | 2022-01-13 21:03:37 +0100 | [diff] [blame^] | 9 | std::cout << "I am a test from the dll!\n"; |
| 10 | CHECK(true); |
| 11 | CHECK(doctest::IsNaN<long double>(0.1L)); |
onqtam | 4a65563 | 2016-05-26 14:20:52 +0300 | [diff] [blame] | 12 | } |
| 13 | |
onqtam | b43aa04 | 2017-03-13 19:04:08 +0200 | [diff] [blame] | 14 | DOCTEST_SYMBOL_EXPORT void from_dll(); // to silence "-Wmissing-declarations" with GCC |
| 15 | DOCTEST_SYMBOL_EXPORT void from_dll() {} // force the creation of a .lib file with MSVC |