1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

New testcase for malloc promotion

llvm-svn: 4533
This commit is contained in:
Chris Lattner 2002-11-04 16:18:07 +00:00
parent b7afa2004a
commit 862c22518a

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
}