aboutsummaryrefslogtreecommitdiffstats
path: root/test/FrontendC
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-03-01 16:19:31 +0000
committerDuncan Sands <baldrick@free.fr>2009-03-01 16:19:31 +0000
commit358f24943aab6d3a168eb075f9435e31e85f6c38 (patch)
treeb65871516e51994aec3e14b23ed35db239488c47 /test/FrontendC
parent10f06755ce2f8de046938cc3d19d052d76e722c3 (diff)
downloadexternal_llvm-358f24943aab6d3a168eb075f9435e31e85f6c38.zip
external_llvm-358f24943aab6d3a168eb075f9435e31e85f6c38.tar.gz
external_llvm-358f24943aab6d3a168eb075f9435e31e85f6c38.tar.bz2
Functions marked malloc are noalias return.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65775 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FrontendC')
-rw-r--r--test/FrontendC/2009-03-01-MallocNoAlias.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/FrontendC/2009-03-01-MallocNoAlias.c b/test/FrontendC/2009-03-01-MallocNoAlias.c
new file mode 100644
index 0000000..22ff6cb
--- /dev/null
+++ b/test/FrontendC/2009-03-01-MallocNoAlias.c
@@ -0,0 +1,3 @@
+// RUN: %llvmgcc %s -S -o - | grep noalias
+
+void * __attribute__ ((malloc)) foo (void) { return 0; }