Home | History | Annotate | Download | only in jni
      1 // { dg-do run  }
      2 // prms-id: 7330
      3 #include <stddef.h>
      4 int size = 0;
      5 
      6 struct X {
      7     int x;
      8     void *operator new[](size_t sz) throw()  {
      9          size = sz;
     10          return 0;
     11     }
     12     void operator delete[] (void *vp) { ::operator delete(vp); }
     13 };
     14 int main()
     15 {
     16      X (*px) [10];
     17 
     18      px = new X[5][10];
     19 
     20      delete [] px;
     21 
     22      return 0;
     23 }
     24