blob: c7971820ec750264b8d6ba06ff741455ce95977a [file] [log] [blame]
Duncan Sands5fe97a02010-11-25 21:39:17 +00001// RUN: %llvmgxx %s -S -O2 -o - | ignore grep _Unwind_Resume | \
Duncan Sands28e82cc2007-08-20 17:14:02 +00002// RUN: wc -l | grep {\[23\]}
Duncan Sandsd9e37862007-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}