blob: b436e8fa330d1c392b777110ca98abeac473eac3 [file] [log] [blame]
onqtamb43aa042017-03-13 19:04:08 +02001#define DOCTEST_CONFIG_IMPLEMENTATION_IN_DLL
ncihnegnc5458f22019-01-28 05:08:18 -08002#include <doctest/doctest.h>
onqtamb43aa042017-03-13 19:04:08 +02003
onqtamabf39d22017-10-28 21:30:45 +03004DOCTEST_MAKE_STD_HEADERS_CLEAN_FROM_WARNINGS_ON_WALL_BEGIN
Stefan58f3ec82022-01-13 21:03:37 +01005#include <iostream>
onqtamabf39d22017-10-28 21:30:45 +03006DOCTEST_MAKE_STD_HEADERS_CLEAN_FROM_WARNINGS_ON_WALL_END
onqtam4a655632016-05-26 14:20:52 +03007
8TEST_CASE("dll") {
Stefan58f3ec82022-01-13 21:03:37 +01009 std::cout << "I am a test from the dll!\n";
10 CHECK(true);
onqtam4a655632016-05-26 14:20:52 +030011}
12
onqtamb43aa042017-03-13 19:04:08 +020013DOCTEST_SYMBOL_EXPORT void from_dll(); // to silence "-Wmissing-declarations" with GCC
14DOCTEST_SYMBOL_EXPORT void from_dll() {} // force the creation of a .lib file with MSVC