diff options
Diffstat (limited to 'test/Transforms/FunctionAttrs/2009-05-06-Malloc.ll')
-rw-r--r-- | test/Transforms/FunctionAttrs/2009-05-06-Malloc.ll | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Transforms/FunctionAttrs/2009-05-06-Malloc.ll b/test/Transforms/FunctionAttrs/2009-05-06-Malloc.ll new file mode 100644 index 0000000..488e6a9 --- /dev/null +++ b/test/Transforms/FunctionAttrs/2009-05-06-Malloc.ll @@ -0,0 +1,7 @@ +; RUN: opt < %s -functionattrs -S | not grep read +; PR3754 + +define i8* @m(i32 %size) { + %tmp = malloc i8, i32 %size ; <i8*> [#uses=1] + ret i8* %tmp +} |