Fix PR3754: don't mark functions that wrap MallocInst with
[oota-llvm.git] / test / Transforms / FunctionAttrs / 2009-05-06-Malloc.ll
1 ; RUN: llvm-as < %s | opt -functionattrs | llvm-dis | not grep read
2 ; PR3754
3
4 define i8* @m(i32 %size) {
5         %tmp = malloc i8, i32 %size             ; <i8*> [#uses=1]
6         ret i8* %tmp
7 }