2006-12-31 06:02:00 +00:00
|
|
|
; RUN: llvm-upgrade < %s | llvm-as -f -o %t.bc
|
2004-11-06 23:32:43 +00:00
|
|
|
; RUN: lli %t.bc > /dev/null
|
|
|
|
|
2002-11-21 17:18:37 +00:00
|
|
|
; test return instructions
|
|
|
|
|
2006-12-31 06:02:00 +00:00
|
|
|
void %test1() { ret void }
|
|
|
|
sbyte %test2() { ret sbyte 1 }
|
|
|
|
ubyte %test3() { ret ubyte 1 }
|
|
|
|
short %test4() { ret short -1 }
|
|
|
|
ushort %test5() { ret ushort 65535 }
|
2002-12-13 05:42:57 +00:00
|
|
|
int %main() { ret int 0 }
|
2006-12-31 06:02:00 +00:00
|
|
|
uint %test6() { ret uint 4 }
|
|
|
|
long %test7() { ret long 0 }
|
|
|
|
ulong %test8() { ret ulong 0 }
|
|
|
|
float %test9() { ret float 1.0 }
|
|
|
|
double %test10() { ret double 2.0 }
|