projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Test case for PR1279 (part 2).
[oota-llvm.git]
/
test
/
ExecutionEngine
/
test-malloc.ll
1
; RUN: llvm-upgrade < %s | llvm-as -f -o %t.bc
2
; RUN: lli %t.bc > /dev/null
3
4
5
int %main() {
6
%X = malloc int ; constant size
7
%Y = malloc int, uint 100 ; constant size
8
%u = add uint 1, 2
9
%Z = malloc int, uint %u ; variable size
10
free int* %X
11
free int* %Y
12
free int* %Z
13
ret int 0
14
}