Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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
();
}