logging.cpp(0): CHECK( vec[i] != (1 << i) ) is NOT correct! values: CHECK( 1 != 1 ) logged: current iteration of loop: i := 0 logging.cpp(0): CHECK( vec[i] != (1 << i) ) is NOT correct! values: CHECK( 2 != 2 ) logged: current iteration of loop: i := 1 logging.cpp(0): CHECK( vec[i] != (1 << i) ) is NOT correct! values: CHECK( 4 != 4 ) logged: current iteration of loop: i := 2 logging.cpp(0): CHECK( vec[i] != (1 << i) ) is NOT correct! values: CHECK( 8 != 8 ) logged: current iteration of loop: i := 3 logging.cpp(0): CHECK( vec[i] != (1 << i) ) is NOT correct! values: CHECK( 16 != 16 ) logged: current iteration of loop: i := 4 logging.cpp(0): CHECK( some_var == 666 ) is NOT correct! values: CHECK( 42 == 666 ) logged: someTests() returned: 42 this should be printed if an exception is thrown even if no assert has failed: 42 in a nested scope this should be printed as well: 42 why is this not 666 ?! 0 0 Program code.