Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
pr78469.C
blob: dd5ff84bfe4381d9da06e7b28bd3d936baadf6b1 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
// PR78469, bogus error about inaccessible dtor.
struct
no_destr
{
no_destr
()
=
default
;
protected
:
~
no_destr
()
=
default
;
};
void
*
Foo
()
{
return
new
no_destr
();
}