diff options
Diffstat (limited to 'test/symbols.cpp')
-rw-r--r-- | test/symbols.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/symbols.cpp b/test/symbols.cpp new file mode 100644 index 0000000..7ace3bb --- /dev/null +++ b/test/symbols.cpp @@ -0,0 +1,21 @@ +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; +} |