test for something more interesting than not crashing
[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 }