summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lookup/delete1.C
blob: beaed209dc95de12e6b9e5ce134d8c159b30d110 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PR c++/2136
// Test that overloaded op new and delete don't prevent us from using the
// global versions with an explicit scope.

#include <stddef.h>

struct A {
  void *operator new (size_t, float);
  void operator delete (void *, float);
};

int main ()
{
  A *p = ::new A;
  ::delete p;
}