blob: 093d18d87a8635833ecd63a5df9b7951b9d512b5 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001// RUN: %llvmgxx %s -S -emit-llvm -O2 -o - | ignore grep _Unwind_Resume | \
Duncan Sands66929ff2007-07-19 09:38:34 +00002// RUN: wc -l | grep {\[02\]}
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}