onqtam | b43aa04 | 2017-03-13 19:04:08 +0200 | [diff] [blame] | 1 | #define DOCTEST_CONFIG_IMPLEMENTATION_IN_DLL |
| 2 | #include "doctest.h" |
| 3 | |
onqtam | abf39d2 | 2017-10-28 21:30:45 +0300 | [diff] [blame] | 4 | DOCTEST_MAKE_STD_HEADERS_CLEAN_FROM_WARNINGS_ON_WALL_BEGIN |
onqtam | b43aa04 | 2017-03-13 19:04:08 +0200 | [diff] [blame] | 5 | #include <cstdio> |
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") { |
| 9 | printf("I am a test from the dll!\n"); |
| 10 | } |
| 11 | |
onqtam | b43aa04 | 2017-03-13 19:04:08 +0200 | [diff] [blame] | 12 | DOCTEST_SYMBOL_EXPORT void from_dll(); // to silence "-Wmissing-declarations" with GCC |
| 13 | DOCTEST_SYMBOL_EXPORT void from_dll() {} // force the creation of a .lib file with MSVC |