mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
4572ce85b0
llvm-svn: 33296
15 lines
327 B
LLVM
15 lines
327 B
LLVM
; RUN: llvm-upgrade < %s | llvm-as -f -o %t.bc
|
|
; RUN: lli %t.bc > /dev/null
|
|
|
|
|
|
int %main() {
|
|
%X = malloc int ; constant size
|
|
%Y = malloc int, uint 100 ; constant size
|
|
%u = add uint 1, 2
|
|
%Z = malloc int, uint %u ; variable size
|
|
free int* %X
|
|
free int* %Y
|
|
free int* %Z
|
|
ret int 0
|
|
}
|