Debian Codegraph @

gcc/testsuite/g++.dg/parse/using4.C

raw
1 // PR c++/58457
2
3 struct allocator
4 {
5 void operator delete (void*);
6 void* operator new (__SIZE_TYPE__, void*);
7 };
8
9 struct type : public allocator
10 {
11 type() {}
12 using allocator::operator new;
13 using allocator::operator delete;
14 };
15
16 int main()
17 {
18 new (0) type;
19 return 0;
20 }