diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-09-13 13:47:30 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-09-14 00:18:49 +0300 |
commit | 418e850b2b1f76b204af87a5d930f5129055e09a (patch) | |
tree | 470f40f91b500ca1de712689d171433d9dd4d0d5 /test/symbols.cpp | |
parent | call_stack: try to fix __declspec(noinline) #3 (diff) | |
download | winapi-debug-418e850b2b1f76b204af87a5d930f5129055e09a.tar.gz winapi-debug-418e850b2b1f76b204af87a5d930f5129055e09a.zip |
call_stack: can't noinline w/ MSVC, let's try a DLL
Diffstat (limited to 'test/symbols.cpp')
-rw-r--r-- | test/symbols.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/test/symbols.cpp b/test/symbols.cpp deleted file mode 100644 index 7ace3bb..0000000 --- a/test/symbols.cpp +++ /dev/null @@ -1,21 +0,0 @@ -namespace foobar_ns { - -int exit_code = 1; - -int __declspec(noinline) baz() { - return exit_code; -} - -int __declspec(noinline) bar() { - return baz() * 2; -} - -int __declspec(noinline) foo() { - return bar() * 2; -} - -} // namespace foobar_ns - -int main() { - return foobar_ns::foo() * 2; -} |