llvm/test/C++Frontend/2007-05-23-TryFinally.cpp
Duncan Sands 9d46cd5507 Use "ignore" rather than grep tricks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37592 91177308-0d34-0410-b5e6-96231b3b80d8
2007-06-15 17:13:53 +00:00

17 lines
239 B
C++

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