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