1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-28 22:42:52 +01:00
llvm-mirror/test/Regression/ExecutionEngine/test-malloc.ll
Tanya Lattner bb2cd15df7 Adding RUN lines.
llvm-svn: 17536
2004-11-06 23:32:43 +00:00

15 lines
310 B
LLVM

; RUN: llvm-as -f %s -o %t.bc
; RUN: lli %t.bc > /dev/null
int %main() {
%X = malloc int ; constant size
%Y = malloc int, uint 100 ; constant size
%u = add uint 1, 2
%Z = malloc int, uint %u ; variable size
free int* %X
free int* %Y
free int* %Z
ret int 0
}