aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/InstCombine/malloc.ll
blob: 3545f3073de9a730799ea7c34d1dbbae542f5fb1 (plain)
1
2
3
4
5
6
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
}