blob: 8a3dc1e80518ae8229815f70fd1f3c69bfc3710e [file] [log] [blame]
Chris Lattnerbcecb4b2003-04-18 19:22:39 +00001; This testcases makes sure that mem2reg can handle unreachable blocks.
2; RUN: as < %s | opt -mem2reg
3
4int %test() {
5 %X = alloca int
6
7 store int 6, int* %X
8 br label %Loop
9Loop:
10 store int 5, int* %X
11 br label %EndOfLoop
12Unreachable:
13 br label %EndOfLoop
14
15EndOfLoop:
16 br label %Loop
17}