blob: 3c59fa64b43a7c718121152b3facdbe4f4fa8c16 [file] [log] [blame]
// { dg-do assemble }
// GROUPS passed old-abort
#include <iostream>
class A {
public:
virtual ~A() {std::cout << "executed ~A()\n";}
};
class B : public A {
public:
virtual ~B() {std::cout << "executed ~B()\n";}
};
int
main() {
std::cout << "starting\n";
B b;
b.~A();
std::cout << "done\n";
}