aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/foobar.cpp
blob: cdb8a970e9f9e94121d5000590382106a542f735 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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;
}