New testcase for malloc promotion

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4533 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-11-04 16:18:07 +00:00
parent c405daf392
commit 0eaaa56f1f

View File

@ -0,0 +1,7 @@
; test that malloc's with a constant argument are promoted to array allocations
; RUN: as < %s | opt -instcombine -die | dis | grep getelementptr
int* %test() {
%X = malloc int, uint 4
ret int* %X
}