From: Duncan Sands Date: Sun, 1 Mar 2009 16:19:31 +0000 (+0000) Subject: Functions marked malloc are noalias return. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=358f24943aab6d3a168eb075f9435e31e85f6c38;p=oota-llvm.git Functions marked malloc are noalias return. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65775 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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; }