2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / warn01.C
blob3f569421f26477a744a6f2228be94bbcfef2d5af
1 // { dg-do assemble  }
2 // { dg-options "-W -Wall" }
4 typedef unsigned long size_t;
5 extern void* malloc (size_t);
6 extern void free (void*);
7 extern void* realloc (void*, size_t);
9 struct vtable {
10   void* (* _malloc) (size_t);
11   void (* _free) (void*);
12   void* (* _realloc) (void*, size_t);
15 struct vtable mtable = { malloc, free };  // { dg-warning "" } _realloc