summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/using4.C
blob: 2abe399f8dc7a94e79511c5def0c4a21d80ebb22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// PR c++/58457

struct allocator
{
  void operator delete (void*);
  void* operator new (__SIZE_TYPE__, void*);
};

struct type : public allocator
{
  type() {}
  using allocator::operator new;
  using allocator::operator delete;
};

int main()
{
  new (0) type;
  return 0;
}