2002-11-05 00:18:07 +08:00
|
|
|
; test that malloc's with a constant argument are promoted to array allocations
|
2004-02-28 13:26:06 +08:00
|
|
|
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep getelementptr
|
2002-11-05 00:18:07 +08:00
|
|
|
|
|
|
|
int* %test() {
|
|
|
|
%X = malloc int, uint 4
|
|
|
|
ret int* %X
|
|
|
|
}
|