llvm.org GIT mirror llvm / bcecb4b
New testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5809 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 16 years ago
1 changed file(s) with 17 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; This testcases makes sure that mem2reg can handle unreachable blocks.
1 ; RUN: as < %s | opt -mem2reg
2
3 int %test() {
4 %X = alloca int
5
6 store int 6, int* %X
7 br label %Loop
8 Loop:
9 store int 5, int* %X
10 br label %EndOfLoop
11 Unreachable:
12 br label %EndOfLoop
13
14 EndOfLoop:
15 br label %Loop
16 }