blob: 778aa3b1f7b439ece1b7a9c393ce84da3a0160d9 [file] [log] [blame]
Dan Gohman3c7d3082009-09-11 18:01:28 +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