Shih-wei Liao | e264f62 | 2010-02-10 11:10:31 -0800 | [diff] [blame^] | 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 |