Chris Lattner | 2f27206 | 2003-08-31 02:38:46 +0000 | [diff] [blame^] | 1 | ; RUN: as < %s | opt -prune-eh | dis | not grep invoke |
2 | |||||
3 | implementation | ||||
4 | |||||
5 | internal int %foo() { | ||||
6 | invoke int %foo() to label %Normal except label %Except | ||||
7 | Normal: | ||||
8 | ret int 12 | ||||
9 | Except: | ||||
10 | ret int 123 | ||||
11 | } | ||||
12 | |||||
13 | int %caller() { | ||||
14 | invoke int %foo() to label %Normal except label %Except | ||||
15 | Normal: | ||||
16 | ret int 0 | ||||
17 | Except: | ||||
18 | ret int 1 | ||||
19 | } |