Expose Module::dump via C and Ocaml.
[oota-llvm.git] / test / ExecutionEngine / test-loop.ll
1 ; RUN: llvm-as < %s -f -o %t.bc
2 ; RUN: lli %t.bc > /dev/null
3
4 define i32 @main() {
5 ; <label>:0
6         br label %Loop
7 Loop:           ; preds = %Loop, %0
8         %I = phi i32 [ 0, %0 ], [ %i2, %Loop ]          ; <i32> [#uses=1]
9         %i2 = add i32 %I, 1             ; <i32> [#uses=2]
10         %C = icmp eq i32 %i2, 10                ; <i1> [#uses=1]
11         br i1 %C, label %Out, label %Loop
12 Out:            ; preds = %Loop
13         ret i32 0
14 }
15