Duncan Sands | 140a260 | 2007-06-07 09:00:48 +0000 | [diff] [blame^] | 1 | // RUN: %llvmgxx %s -S -emit-llvm -O2 -o - | grep -c {handle\\|_Unwind_Resume} | grep {\[14\]} |
Duncan Sands | 5ae3ef3 | 2007-05-30 10:16:19 +0000 | [diff] [blame] | 2 | |
3 | struct One { }; | ||||
4 | struct Two { }; | ||||
5 | |||||
6 | void handle_unexpected () { | ||||
7 | try | ||||
8 | { | ||||
9 | throw; | ||||
10 | } | ||||
11 | catch (One &) | ||||
12 | { | ||||
13 | throw Two (); | ||||
14 | } | ||||
15 | } |