summaryrefslogtreecommitdiff
path: root/test/FrontendC/2009-03-01-MallocNoAlias.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/FrontendC/2009-03-01-MallocNoAlias.c')
-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 000000000000..22ff6cb5c301
--- /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; }