aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/Wredundant-decls-1.c
blob: c38c7b5540f2b936704d8dc5a5a5aac0895866b5 (plain)
1
2
3
4
5
6
7
/* PR 16684: no redundant declaration warnings should issue the first
   time a built-in function is declared.
   { dg-do compile }
   { dg-options "-Wredundant-decls" } */

void *malloc (__SIZE_TYPE__);  /* { dg-bogus "redundant" } */
void *malloc (__SIZE_TYPE__);  /* { dg-warning "redundant" } */