blob: 38f0b021aba00db2359d8b9c639365468f80c368 [file] [log] [blame]
Duncan Sands9d46cd52007-06-15 17:13:53 +00001// RUN: %llvmgxx %s -S -emit-llvm -O2 -o - | ignore grep _Unwind_Resume | \
Duncan Sands0c6dcbb2007-08-20 17:14:02 +00002// RUN: wc -l | grep {\[23\]}
Duncan Sands5ae3ef32007-05-30 10:16:19 +00003
4struct One { };
5struct Two { };
6
7void handle_unexpected () {
8 try
9 {
10 throw;
11 }
12 catch (One &)
13 {
14 throw Two ();
15 }
16}