mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-26 05:56:51 +00:00
5edf210bdf
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51357 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
303 B
LLVM
15 lines
303 B
LLVM
; RUN: llvm-as %s -f -o %t.bc
|
|
; RUN: lli %t.bc > /dev/null
|
|
|
|
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
|
|
}
|
|
|