From 358f24943aab6d3a168eb075f9435e31e85f6c38 Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Sun, 1 Mar 2009 16:19:31 +0000 Subject: [PATCH] Functions marked malloc are noalias return. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65775 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/FrontendC/2009-03-01-MallocNoAlias.c | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 test/FrontendC/2009-03-01-MallocNoAlias.c diff --git a/test/FrontendC/2009-03-01-MallocNoAlias.c b/test/FrontendC/2009-03-01-MallocNoAlias.c new file mode 100644 index 00000000000..22ff6cb5c30 --- /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; } -- 2.34.1