mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-12-01 23:01:57 +00:00
- Also, switch tests to not using llvm-as. They run 20% faster now, not that it matters. llvm-svn: 118952
14 lines
270 B
LLVM
14 lines
270 B
LLVM
; RUN: lli %s > /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
|
|
}
|
|
|