blob: 7a7f245bf5cf042a747b80922da5970b1db66ca1 [file] [log] [blame]
Reid Spencereacb7022006-12-31 06:02:00 +00001; RUN: llvm-upgrade < %s | llvm-as -f -o %t.bc
Tanya Lattnere9789ef2004-11-06 23:32:43 +00002; RUN: lli %t.bc > /dev/null
3
Chris Lattner4a8068f2003-01-13 01:03:16 +00004
5int %main() {
6 %X = malloc int ; constant size
7 %Y = malloc int, uint 100 ; constant size
8 %u = add uint 1, 2
9 %Z = malloc int, uint %u ; variable size
10 free int* %X
11 free int* %Y
12 free int* %Z
13 ret int 0
14}