tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle BIT_FIELD_REF.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.mike / p755.C
blobee6198dfb6cfe9c56f6ce59d2f4c2e6d9666158c
1 // { dg-do run  }
2 // It checks to see if you can define your own global new operator.
3 // prms-id: 755
5 #include <new>
7 extern "C" void _exit(int);
9 void* operator new(std::size_t sz)
10 #if __cplusplus <= 199711L
11   throw (std::bad_alloc)
12 #endif
14   void* p = 0;
15   _exit(0);
16   return p;
19 int main () {
20   int* i = new int;
21   delete i;
22   return 1;