[cfe-commits] r78741 - /cfe/trunk/test/Sema/attr-malloc.c

Benjamin Kramer benny.kra at googlemail.com
Tue Aug 11 15:46:25 PDT 2009


Author: d0k
Date: Tue Aug 11 17:46:25 2009
New Revision: 78741

URL: http://llvm.org/viewvc/llvm-project?rev=78741&view=rev
Log:
Rename macro to avoid a name clash on FreeBSD.

Modified:
    cfe/trunk/test/Sema/attr-malloc.c

Modified: cfe/trunk/test/Sema/attr-malloc.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/attr-malloc.c?rev=78741&r1=78740&r2=78741&view=diff

==============================================================================
--- cfe/trunk/test/Sema/attr-malloc.c (original)
+++ cfe/trunk/test/Sema/attr-malloc.c Tue Aug 11 17:46:25 2009
@@ -15,8 +15,8 @@
 void * xalloc(unsigned n) { return malloc(n); }
 // RUN: grep 'define noalias .* @xalloc(' %t &&
 
-#define __malloc_like __attribute((__malloc__))
-void * xalloc2(unsigned) __malloc_like;
+#define malloc_like __attribute((__malloc__))
+void * xalloc2(unsigned) malloc_like;
 void * xalloc2(unsigned n) { return malloc(n); }
 // RUN: grep 'define noalias .* @xalloc2(' %t
 





More information about the cfe-commits mailing list