For PR950:
[oota-llvm.git] / test / ExecutionEngine / test-ret.ll
1 ; RUN: llvm-upgrade < %s | llvm-as -f -o %t.bc
2 ; RUN: lli %t.bc > /dev/null
3
4 ; test return instructions
5
6 void %test1() { ret void }
7 sbyte %test2() { ret sbyte 1 }
8 ubyte %test3() { ret ubyte 1 }
9 short %test4() { ret short -1 }
10 ushort %test5() { ret ushort 65535 }
11 int  %main() { ret int 0 }
12 uint %test6() { ret uint 4 }
13 long %test7() { ret long 0 }
14 ulong %test8() { ret ulong 0 }
15 float %test9() { ret float 1.0 }
16 double %test10() { ret double 2.0 }