aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/FunctionAttrs/2009-05-06-Malloc.ll
blob: 4022033c3b0ed8e18e911b880c2ae4b81bb9eec7 (plain)
1
2
3
4
5
6
7
; RUN: llvm-as < %s | opt -functionattrs | llvm-dis | not grep read
; PR3754

define i8* @m(i32 %size) {
	%tmp = malloc i8, i32 %size		; <i8*> [#uses=1]
	ret i8* %tmp
}