[llvm-commits] [llvm] r65775 - /llvm/trunk/test/FrontendC/2009-03-01-MallocNoAlias.c
Duncan Sands
baldrick at free.fr
Sun Mar 1 08:19:31 PST 2009
Author: baldrick
Date: Sun Mar 1 10:19:31 2009
New Revision: 65775
URL: http://llvm.org/viewvc/llvm-project?rev=65775&view=rev
Log:
Functions marked malloc are noalias return.
Added:
llvm/trunk/test/FrontendC/2009-03-01-MallocNoAlias.c
Added: llvm/trunk/test/FrontendC/2009-03-01-MallocNoAlias.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2009-03-01-MallocNoAlias.c?rev=65775&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC/2009-03-01-MallocNoAlias.c (added)
+++ llvm/trunk/test/FrontendC/2009-03-01-MallocNoAlias.c Sun Mar 1 10:19:31 2009
@@ -0,0 +1,3 @@
+// RUN: %llvmgcc %s -S -o - | grep noalias
+
+void * __attribute__ ((malloc)) foo (void) { return 0; }
More information about the llvm-commits
mailing list