aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/warn01.C
blob: 229363a3ec05c82b98a749f8caefb83e759eadac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Build don't link:
// Special g++ Options: -W -Wall

typedef unsigned long size_t;
extern void* malloc (size_t);
extern void free (void*);
extern void* realloc (void*, size_t);

struct vtable {
  void* (* _malloc) (size_t);
  void (* _free) (void*);
  void* (* _realloc) (void*, size_t);
};

struct vtable mtable = { malloc, free };  // WARNING - _realloc