blob: c6fb9a3a5f0d30428e2d686c6ba9a59b2443eec3 [file] [log] [blame]
Reid Spencerd7c2c2f2006-12-02 20:34:08 +00001; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
Tanya Lattnere7e3f2e2004-11-06 22:07:09 +00002
Chris Lattnerc6424352002-08-22 20:30:06 +00003; Dominance relationships is not calculated correctly for unreachable blocks,
4; which causes the verifier to barf on this input.
5
6int %test(bool %b) {
7BB0: ret int 7 ; Loop is unreachable
8
9Loop:
10 %B = phi int [%B, %L2], [%B, %Loop] ; PHI has same value always.
11 br bool %b, label %L2, label %Loop
12L2:
13 br label %Loop
14}
15