aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2009-08-11 22:46:25 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2009-08-11 22:46:25 +0000
commit73e10b0390e77bbc12b534c91230c494676a6ebb (patch)
tree06e9f1047f33532838576678c421068dfcb21efc
parentdf1109434abd465a4db2e6f69ec2688866660367 (diff)
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
-rw-r--r--test/Sema/attr-malloc.c4
1 files 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