Add test5.cpp for advanced branching.