1 // { dg-options "-O3 -flifetime-dse=1" }
4 typedef __SIZE_TYPE__ size_t;
5 inline void * operator new (size_t, void *p) { return p; }
19 // With -flifetime-dse=1 we retain the old value.
20 if (ap->i != 42) __builtin_abort();
25 // When the destructor ends the object no longer exists.
26 if (ar[0] == 42) __builtin_abort();