repo.or.cz
/
llvm
/
avr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
revert a hunk of r82018 that wasn't supposed to go in yet.
[llvm/avr.git]
/
test
/
ExecutionEngine
/
test-malloc.ll
blob
8f79d974edb538f667ff751efc2efacb03c9ba39
1
; RUN: llvm-as %s -o %t.bc
2
; RUN: lli %t.bc > /dev/null
3
4
define i32 @main() {
5
%X = malloc i32 ; <i32*> [#uses=1]
6
%Y = malloc i32, i32 100 ; <i32*> [#uses=1]
7
%u = add i32 1, 2 ; <i32> [#uses=1]
8
%Z = malloc i32, i32 %u ; <i32*> [#uses=1]
9
free i32* %X
10
free i32* %Y
11
free i32* %Z
12
ret i32 0
13
}
14