blob: 093d18d87a8635833ecd63a5df9b7951b9d512b5 [file] [log] [blame]
Duncan Sands9d46cd52007-06-15 17:13:53 +00001// RUN: %llvmgxx %s -S -emit-llvm -O2 -o - | ignore grep _Unwind_Resume | \
Duncan Sands1d572db2007-07-19 09:38:34 +00002// RUN: wc -l | grep {\[02\]}
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}