aboutsummaryrefslogtreecommitdiff
path: root/test/C++Frontend/2007-05-23-TryFinally.cpp
blob: 021d528a0cedd43a3d8b0b93f6f9010615caab81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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 ();
  }
}