llvm-6502/test/C++Frontend/2007-05-23-TryFinally.cpp
2007-06-07 09:00:48 +00:00

16 lines
226 B
C++

// RUN: %llvmgxx %s -S -emit-llvm -O2 -o - | grep -c {handle\\|_Unwind_Resume} | grep {\[14\]}
struct One { };
struct Two { };
void handle_unexpected () {
try
{
throw;
}
catch (One &)
{
throw Two ();
}
}