summaryrefslogtreecommitdiff
path: root/test/ExecutionEngine/test-ret.ll
blob: 6fbaf717d75d7ccf3dded98eda981b32a62b1fe0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
; RUN: llvm-as -f %s -o %t.bc
; RUN: lli %t.bc > /dev/null

; test return instructions

void %test() { ret void }
sbyte %test() { ret sbyte 1 }
ubyte %test() { ret ubyte 1 }
short %test() { ret short -1 }
ushort %test() { ret ushort 65535 }
int  %main() { ret int 0 }
uint %test() { ret uint 4 }
long %test() { ret long 0 }
ulong %test() { ret ulong 0 }
float %test() { ret float 1.0 }
double %test() { ret double 2.0 }