2009-02-17 11:23:10 +08:00
|
|
|
// RUN: clang -fsyntax-only -verify %s
|
|
|
|
|
|
|
|
// PR3592
|
|
|
|
static void* malloc(int);
|
|
|
|
static void* malloc(int size) {
|
|
|
|
return ((void*)0); /*do not use heap in this file*/
|
|
|
|
}
|
2009-02-19 06:00:45 +08:00
|
|
|
|
|
|
|
void *calloc(int, int, int); // expected-warning{{incompatible redeclaration of library function 'calloc' will be ignored}} \
|
2009-02-19 08:03:13 +08:00
|
|
|
// expected-note{{'calloc' is a builtin with type 'void *}}
|
2009-02-19 06:00:45 +08:00
|
|
|
|
|
|
|
void f1(void) {
|
2009-03-24 01:47:24 +08:00
|
|
|
calloc(0, 0, 0);
|
2009-02-19 06:00:45 +08:00
|
|
|
}
|