blob: 1a9d58a5a8e24547ea3f02c22535441b82e1d661 [file] [log] [blame]
// Test that we don't complain about calling a destructor on a const object.
#include <new>
struct A
{
~A() {}
};
const A a = {};
int main()
{
a.~A();
a.A::~A(); // gets bogus error - const violation
}