From 73e10b0390e77bbc12b534c91230c494676a6ebb Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Tue, 11 Aug 2009 22:46:25 +0000 Subject: [PATCH] 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 --- test/Sema/attr-malloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.40.0