summaryrefslogtreecommitdiffstatshomepage
path: root/test/lab_rat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/lab_rat.cpp')
-rw-r--r--test/lab_rat.cpp21
1 files changed, 9 insertions, 12 deletions
diff --git a/test/lab_rat.cpp b/test/lab_rat.cpp
index ae93c7b..ed204b6 100644
--- a/test/lab_rat.cpp
+++ b/test/lab_rat.cpp
@@ -1,24 +1,21 @@
-#include <iostream>
-
namespace lab_rat {
-void baz() {
- std::cout << "baz\n";
+int exit_code = 1;
+
+int baz() {
+ return exit_code;
}
-void bar() {
- std::cout << "bar\n";
- baz();
+int bar() {
+ return baz() * 2;
}
-void foo() {
- std::cout << "foo\n";
- bar();
+int foo() {
+ return bar() * 2;
}
} // namespace lab_rat
int main() {
- lab_rat::foo();
- return 0;
+ return lab_rat::foo() * 2;
}