projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
merge two tests.
[oota-llvm.git]
/
test
/
ExecutionEngine
/
test-malloc.ll
1
; RUN: lli %s > /dev/null
2
3
define i32 @main() {
4
%X = malloc i32 ; <i32*> [#uses=1]
5
%Y = malloc i32, i32 100 ; <i32*> [#uses=1]
6
%u = add i32 1, 2 ; <i32> [#uses=1]
7
%Z = malloc i32, i32 %u ; <i32*> [#uses=1]
8
free i32* %X
9
free i32* %Y
10
free i32* %Z
11
ret i32 0
12
}
13