2008-05-21 06:07:21 +08:00
|
|
|
; RUN: llvm-as %s -f -o %t.bc
|
2004-11-07 07:32:43 +08:00
|
|
|
; RUN: lli %t.bc > /dev/null
|
|
|
|
|
2008-03-10 15:21:50 +08:00
|
|
|
define i32 @main() {
|
|
|
|
%X = malloc i32 ; <i32*> [#uses=1]
|
|
|
|
%Y = malloc i32, i32 100 ; <i32*> [#uses=1]
|
|
|
|
%u = add i32 1, 2 ; <i32> [#uses=1]
|
|
|
|
%Z = malloc i32, i32 %u ; <i32*> [#uses=1]
|
|
|
|
free i32* %X
|
|
|
|
free i32* %Y
|
|
|
|
free i32* %Z
|
|
|
|
ret i32 0
|
2003-01-13 09:03:16 +08:00
|
|
|
}
|
2008-03-10 15:21:50 +08:00
|
|
|
|