aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-09-13 12:56:05 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-09-13 12:56:05 +0300
commit4f24eceea4ed57483f18f73def2d1701e89b4033 (patch)
tree7f3e9b6ad2fb3146d5a8e417a946ecda0be7fac4 /test
parentAppVeyor: test call_stack output (diff)
downloadwinapi-debug-4f24eceea4ed57483f18f73def2d1701e89b4033.tar.gz
winapi-debug-4f24eceea4ed57483f18f73def2d1701e89b4033.zip
call_stack: try to fix __declspec(noinline)
Diffstat (limited to 'test')
-rw-r--r--test/call_stack.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/call_stack.cpp b/test/call_stack.cpp
index 8eb3198..a96b6a8 100644
--- a/test/call_stack.cpp
+++ b/test/call_stack.cpp
@@ -1,5 +1,6 @@
#include "pdb/all.hpp"
+#include <boost/config.hpp>
#include <boost/nowide/iostream.hpp>
#include <exception>
@@ -12,17 +13,17 @@ void call_stack() {
call_stack.dump(boost::nowide::cout, dbghelp);
}
-void __declspec(noinline) baz() {
+BOOST_NOINLINE void baz() {
boost::nowide::cout << "baz\n";
call_stack();
}
-void __declspec(noinline) bar() {
+BOOST_NOINLINE void bar() {
boost::nowide::cout << "bar\n";
baz();
}
-void __declspec(noinline) foo() {
+BOOST_NOINLINE void foo() {
boost::nowide::cout << "foo\n";
bar();
}