// S : tags c++ $TAGS // S : expect --result valid // S : cc -o test.bc $CC_OPT $file // S : verify $V_OPT test.bc #include #include #include void foo() { throw 4; } int main() { std::set_terminate( [] { std::exit( 0 ); } ); try { foo(); } catch ( long ) { assert( 0 ); } assert( 0 ); }