blob: b3400df44092152b269500598e4a0f87f257bdd1 [file] [log] [blame]
Daniel Dunbar7c3d1b62010-11-13 00:28:01 +00001; RUN: lli %s > /dev/null
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
Tanya Lattner003eae52008-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
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012}
Tanya Lattner003eae52008-03-10 07:21:50 +000013