aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/net40.C
blob: 10e16e685b75c74c4bd324b2d588466b220e759d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stddef.h>
extern "C" void abort();

class toto {
public:
  void * operator new (size_t t) {
    abort();
  }
  void operator delete (void*p, size_t t) {
    abort();
  }
};

int main() {
  toto * p;
  p = new toto[5];
  delete [] p;
}