Add a lsr common loop invariant hoisting test case
[oota-llvm.git] / test / CodeGen / CBackend / 2002-05-21-MissingReturn.ll
1 ; RUN: llvm-as < %s | llc -march=c
2
3 ; This case was emitting code that looked like this:
4 ; ...
5 ;   llvm_BB1:       /* no statement here */
6 ; }
7
8 ; Which the Sun C compiler rejected, so now we are sure to put a return 
9 ; instruction in there if the basic block is otherwise empty.
10 ;
11 void "test"() {
12         br label %BB1
13 BB2:
14         br label %BB2
15 BB1:
16         ret void
17 }