aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/test/lab_rat.cpp
blob: ed204b675a9acd46884a6b46bdb2dd7616091fcb (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                   



                     

 

                     

 

                     

 

                      
            
                              
 
namespace lab_rat {

int exit_code = 1;

int baz() {
    return exit_code;
}

int bar() {
    return baz() * 2;
}

int foo() {
    return bar() * 2;
}

} // namespace lab_rat

int main() {
    return lab_rat::foo() * 2;
}