From: Benjamin Kramer Date: Tue, 11 Aug 2009 22:46:25 +0000 (+0000) Subject: Rename macro to avoid a name clash on FreeBSD. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=73e10b0390e77bbc12b534c91230c494676a6ebb;p=clang Rename macro to avoid a name clash on FreeBSD. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78741 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Sema/attr-malloc.c b/test/Sema/attr-malloc.c index 5b59bd5058..8841d6993a 100644 --- a/test/Sema/attr-malloc.c +++ b/test/Sema/attr-malloc.c @@ -15,8 +15,8 @@ __attribute((malloc)) 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