Home | History | Annotate | Download | only in jni
      1 // { dg-do run  }
      2 // It checks to see if you can define your own global delete operator.
      3 // prms-id: 755
      4 
      5 extern "C" void _exit(int);
      6 
      7 void operator delete(void *p) throw() {
      8   _exit(0);
      9 }
     10 
     11 int main () {
     12   int* i = new int;
     13   delete i;
     14   return 1;
     15 }
     16