From e6cdc6015d7b810dd3dd705b0872a93b18a64ae1 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 15 Jan 2020 17:16:26 +0300 Subject: lab_rat -> foobar --- test/foobar.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 test/foobar.cpp (limited to 'test/foobar.cpp') diff --git a/test/foobar.cpp b/test/foobar.cpp new file mode 100644 index 0000000..cdb8a97 --- /dev/null +++ b/test/foobar.cpp @@ -0,0 +1,21 @@ +namespace foobar_ns { + +int exit_code = 1; + +int baz() { + return exit_code; +} + +int bar() { + return baz() * 2; +} + +int foo() { + return bar() * 2; +} + +} // namespace foobar_ns + +int main() { + return foobar_ns::foo() * 2; +} -- cgit v1.2.3