blob: 021d528a0cedd43a3d8b0b93f6f9010615caab81 [file] [log] [blame]
Duncan Sands140a2602007-06-07 09:00:48 +00001// RUN: %llvmgxx %s -S -emit-llvm -O2 -o - | grep -c {handle\\|_Unwind_Resume} | grep {\[14\]}
Duncan Sands5ae3ef32007-05-30 10:16:19 +00002
3struct One { };
4struct Two { };
5
6void handle_unexpected () {
7 try
8 {
9 throw;
10 }
11 catch (One &)
12 {
13 throw Two ();
14 }
15}