summaryrefslogtreecommitdiff
path: root/test/Feature/noalias-ret.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Feature/noalias-ret.ll')
-rw-r--r--test/Feature/noalias-ret.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Feature/noalias-ret.ll b/test/Feature/noalias-ret.ll
new file mode 100644
index 0000000000..d88452b797
--- /dev/null
+++ b/test/Feature/noalias-ret.ll
@@ -0,0 +1,6 @@
+; RUN: llvm-as < %s
+
+define noalias i8* @_Znwj(i32 %x) nounwind {
+ %A = malloc i8, i32 %x
+ ret i8* %A
+}