Sign in
gnu
/
gcc
/
14bc1c0e15633ea781d76d0ae4274b2e27d51db5
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
dtor12.C
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
}