Sign in
gnu
/
gcc
/
75bbfcfa8623f5b211475a54f52ced32201575e7
/
.
/
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
}