Rename macro to avoid a name clash on FreeBSD.

llvm-svn: 78741
This commit is contained in:
Benjamin Kramer 2009-08-11 22:46:25 +00:00
parent 1cebe56735
commit b3788a24c6
1 changed files with 2 additions and 2 deletions

View File

@ -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