Roll out r126169 and r126170 in an attempt to fix the selfhost bot.
[oota-llvm.git] / test / CodeGen / CBackend / 2002-05-21-MissingReturn.ll
1 ; RUN: llc < %s -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 define void @test() {
12         br label %BB1
13
14 BB2:            ; preds = %BB2
15         br label %BB2
16
17 BB1:            ; preds = %0
18         ret void
19 }
20