blob: b3400df44092152b269500598e4a0f87f257bdd1 [file] [log] [blame]
Daniel Dunbar46a27162010-11-13 00:28:01 +00001; RUN: lli %s > /dev/null
Tanya Lattnere9789ef2004-11-06 23:32:43 +00002
Tanya Lattnerceca1942008-03-10 07:21:50 +00003define i32 @main() {
4 %X = malloc i32 ; <i32*> [#uses=1]
5 %Y = malloc i32, i32 100 ; <i32*> [#uses=1]
6 %u = add i32 1, 2 ; <i32> [#uses=1]
7 %Z = malloc i32, i32 %u ; <i32*> [#uses=1]
8 free i32* %X
9 free i32* %Y
10 free i32* %Z
11 ret i32 0
Chris Lattner4a8068f2003-01-13 01:03:16 +000012}
Tanya Lattnerceca1942008-03-10 07:21:50 +000013