1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-01 16:33:37 +01:00
llvm-mirror/test/ExecutionEngine/test-malloc.ll

14 lines
270 B
LLVM
Raw Normal View History

; RUN: lli %s > /dev/null
2004-11-07 00:32:43 +01:00
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
2003-01-13 02:03:16 +01:00
}