From 418e850b2b1f76b204af87a5d930f5129055e09a Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 13 Sep 2020 13:47:30 +0300 Subject: call_stack: can't noinline w/ MSVC, let's try a DLL --- test/test_lib.hpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/test_lib.hpp (limited to 'test/test_lib.hpp') diff --git a/test/test_lib.hpp b/test/test_lib.hpp new file mode 100644 index 0000000..f5fa017 --- /dev/null +++ b/test/test_lib.hpp @@ -0,0 +1,19 @@ +#pragma once + +// This is dumb library which exports a bunch of symbols. + +#include "test_lib_api.hpp" + +namespace test { + +typedef void (*F)(); + +TEST_LIB_API extern volatile int var; + +TEST_LIB_API void foo(F); +TEST_LIB_API void bar(F); +TEST_LIB_API void baz(F); + +TEST_LIB_API void print_call_stack(); + +} // namespace test -- cgit v1.2.3