1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
// Build don't link: // Special g++ Options: -O // prms-id: 8786 class B { public: inline ~B(); }; class D : public B { public: D(int); }; int foo() { D t(0); bool h = 1; if (h) { D p(0); return 0; } return 0; }