1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00
llvm-mirror/test/ExecutionEngine/test-malloc.ll
Dan Gohman bf08e82d8e Remove obsolete -f flags.
llvm-svn: 79992
2009-08-25 15:38:29 +00:00

15 lines
300 B
LLVM

; RUN: llvm-as %s -o %t.bc
; RUN: lli %t.bc > /dev/null
define i32 @main() {
%X = malloc i32 ; <i32*> [#uses=1]
%Y = malloc i32, i32 100 ; <i32*> [#uses=1]
%u = add i32 1, 2 ; <i32> [#uses=1]
%Z = malloc i32, i32 %u ; <i32*> [#uses=1]
free i32* %X
free i32* %Y
free i32* %Z
ret i32 0
}