test that unconditional branches to unwinds are always eliminated

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15021 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-07-20 01:17:19 +00:00
parent ba1c1da36a
commit c6c9db2fd7

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
}