onqtam | b43aa04 | 2017-03-13 19:04:08 +0200 | [diff] [blame] | 1 | #define DOCTEST_CONFIG_IMPLEMENTATION_IN_DLL |
2 | #include "doctest.h" | ||||
3 | |||||
4 | #include <cstdio> | ||||
onqtam | 4a65563 | 2016-05-26 14:20:52 +0300 | [diff] [blame] | 5 | |
6 | TEST_CASE("dll") { | ||||
7 | printf("I am a test from the dll!\n"); | ||||
8 | } | ||||
9 | |||||
onqtam | b43aa04 | 2017-03-13 19:04:08 +0200 | [diff] [blame] | 10 | DOCTEST_SYMBOL_EXPORT void from_dll(); // to silence "-Wmissing-declarations" with GCC |
11 | DOCTEST_SYMBOL_EXPORT void from_dll() {} // force the creation of a .lib file with MSVC |