implicit-builtin-redecl.c revision d7d5f0223bd30dfd618762349c6209dd1d5ea3e6
1// RUN: clang-cc -fsyntax-only -verify %s 2 3// PR3592 4static void* malloc(int); 5static void* malloc(int size) { 6 return ((void*)0); /*do not use heap in this file*/ 7} 8 9void *calloc(int, int, int); // expected-warning{{incompatible redeclaration of library function 'calloc' will be ignored}} \ 10// expected-note{{'calloc' is a builtin with type 'void *}} 11 12void f1(void) { 13 calloc(0, 0, 0); 14} 15