aboutsummaryrefslogtreecommitdiffstats
path: root/test
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
commit7f74e8eb38c65e46b788eb6898db0b78b8314e99 (patch)
treeb65871516e51994aec3e14b23ed35db239488c47 /test
parent9d566535c6d2b747149ebf889adf47b1d86be184 (diff)
downloadexternal_llvm-7f74e8eb38c65e46b788eb6898db0b78b8314e99.zip
external_llvm-7f74e8eb38c65e46b788eb6898db0b78b8314e99.tar.gz
external_llvm-7f74e8eb38c65e46b788eb6898db0b78b8314e99.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')
-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; }