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