forked from OSchip/llvm-project
Rename macro to avoid a name clash on FreeBSD.
llvm-svn: 78741
This commit is contained in:
parent
1cebe56735
commit
b3788a24c6
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue