summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/p755a.C
blob: bc23d579e931b13d4a63d9013e5b45b76a95fb2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do run  }
// It checks to see if you can define your own global delete operator.
// prms-id: 755

extern "C" void _exit(int);

void operator delete(void *p) throw() {
  _exit(0);
}

int main () {
  int* i = new int;
  delete i;
  return 1;
}