1 #include <stdio.h> 2 #include <stdexcept> 3 4 int twelve(int i) { 5 return 12 + i; // break 12 6 } 7 8 int thirteen(int i) { 9 return 13 + i; // break 13 10 } 11 12 namespace a { 13 int fourteen(int i) { 14 return 14 + i; // break 14 15 } 16 } 17 int main(int argc, char const *argv[]) { 18 for (int i=0; i<10; ++i) { 19 int x = twelve(i) + thirteen(i) + a::fourteen(i); // break loop 20 } 21 try { 22 throw std::invalid_argument( "throwing exception for testing" ); 23 } catch (...) { 24 puts("caught exception..."); 25 } 26 return 0; 27 } 28