blob: 7f6e244b01b5e6e603c152813239154695b7ed51 [file] [log] [blame]
Dan Gohman1b4c27772009-09-08 16:50:01 +00001; RUN: opt %s -simplifycfg -disable-output
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
Tanya Lattner003eae52008-03-10 07:21:50 +00003define i1 @foo() {
4 %X = invoke i1 @foo( )
5 to label %N unwind label %F ; <i1> [#uses=1]
6F: ; preds = %0
7 ret i1 false
8N: ; preds = %0
9 br i1 %X, label %A, label %B
10A: ; preds = %N
11 ret i1 true
12B: ; preds = %N
13 ret i1 true
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014}
Tanya Lattner003eae52008-03-10 07:21:50 +000015