blob: 22e498b4717e21e54d15809be5e146dd07931b2f [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);
11 CHECK(doctest::IsNaN<long double>(0.1L));
onqtam4a655632016-05-26 14:20:52 +030012}
13
onqtamb43aa042017-03-13 19:04:08 +020014DOCTEST_SYMBOL_EXPORT void from_dll(); // to silence "-Wmissing-declarations" with GCC
15DOCTEST_SYMBOL_EXPORT void from_dll() {} // force the creation of a .lib file with MSVC