blob: bc857ed5edcae9375f5a262ace026c5fc38ef9b4 [file] [log] [blame]
Gabor Greif5edf2102008-05-20 22:07:21 +00001; RUN: llvm-as %s -f -o %t.bc
Tanya Lattnere9789ef2004-11-06 23:32:43 +00002; RUN: lli %t.bc > /dev/null
3
Tanya Lattnerceca1942008-03-10 07:21:50 +00004define 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
Chris Lattner4a8068f2003-01-13 01:03:16 +000013}
Tanya Lattnerceca1942008-03-10 07:21:50 +000014