test that unconditional branches to unwinds are always eliminated

llvm-svn: 15021
This commit is contained in:
Chris Lattner 2004-07-20 01:17:19 +00:00
parent 5e744fa1a3
commit d4cecb9e2f
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
;RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | not grep 'br label'
void %test(bool %C) {
br bool %C, label %A, label %B
A:
call void %test(bool %C)
br label %X
B:
call void %test(bool %C)
br label %X
X:
unwind
}