blob: 404aecf8613aebaf0bc12498054424e7ee3af39b [file] [log] [blame]
Dan Gohman3c7d3082009-09-11 18:01:28 +00001; RUN: opt < %s -jump-threading -S | not grep {br }
2; RUN: opt < %s -jump-threading -S | grep {ret i32} | count 1
Chris Lattner8abc5ad2008-12-03 07:48:27 +00003
4define i32 @test(i1 %cond) {
5 br i1 undef, label %T1, label %F1
6
7T1:
8 ret i32 42
9
10F1:
11 ret i32 17
12}