summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/warn01.C
blob: 3f569421f26477a744a6f2228be94bbcfef2d5af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do assemble  }
// { dg-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 };  // { dg-warning "" } _realloc