Sign in
llvm
/
llvm-archive
/
2d92d8f3eda4630e3e80be62081ca797828d58e1
/
.
/
llvm-gcc-4.2
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
delete2.C
blob: c6230eef125b14f0865a5e0877c345833a34a838 [
file
] [
log
] [
blame
]
// { dg-do assemble }
// PRMS Id: 5003
// Bug: g++ complains about calling the destructor for a const object.
struct
A
{
public
:
~
A
();
};
const
A foo
();
void
bar
()
{
A n
;
n
=
foo
();
// { dg-bogus "" } deleting const
}