New testcase

llvm-svn: 5809
This commit is contained in:
Chris Lattner 2003-04-18 19:22:39 +00:00
parent 424132aa57
commit 71156c10b8
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
; This testcases makes sure that mem2reg can handle unreachable blocks.
; RUN: as < %s | opt -mem2reg
int %test() {
%X = alloca int
store int 6, int* %X
br label %Loop
Loop:
store int 5, int* %X
br label %EndOfLoop
Unreachable:
br label %EndOfLoop
EndOfLoop:
br label %Loop
}