1 // Test PR 17517. Test case provided by Serge Belyshev.
3 /* { dg-do compile } */
4 /* { dg-options "-O2" } */
12 ~Ptr() { delete ptr; }
13 Ptr &operator= (int * p) { ptr = p; return *this; }
16 int *new_checker () { foo (); return 0; }
28 checker = new_checker ();