aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-01-16 01:23:35 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-01-16 01:23:35 +0300
commit8a5695102846a26e398abb6d394c2168e2f6939c (patch)
tree8ae27da80752ee829de6c2cf340c3378a8cc7596 /test
parentSymbolInfo: get rid of a dangerous hack (diff)
downloadwinapi-debug-8a5695102846a26e398abb6d394c2168e2f6939c.tar.gz
winapi-debug-8a5695102846a26e398abb6d394c2168e2f6939c.zip
test/foobar: noinline just in case
Diffstat (limited to 'test')
-rw-r--r--test/foobar.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/foobar.cpp b/test/foobar.cpp
index cdb8a97..7ace3bb 100644
--- a/test/foobar.cpp
+++ b/test/foobar.cpp
@@ -2,15 +2,15 @@ namespace foobar_ns {
int exit_code = 1;
-int baz() {
+int __declspec(noinline) baz() {
return exit_code;
}
-int bar() {
+int __declspec(noinline) bar() {
return baz() * 2;
}
-int foo() {
+int __declspec(noinline) foo() {
return bar() * 2;
}