Sign in
gnu
/
gcc
/
b1143e51359be3b1151d892970f43ae67dee64d2
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
delete2.C
blob: 7748e2b9cb51d2838ea73c28defde47a703a0cb6 [
file
] [
log
] [
blame
]
// PRMS Id: 5003
// Bug: g++ complains about calling the destructor for a const object.
// Build don't link:
struct
A
{
public
:
~
A
();
};
const
A foo
();
void
bar
()
{
A n
;
n
=
foo
();
// gets bogus error - deleting const
}