Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
defaulted47.C
blob: c4f445b9e1cd651bd9799128ca819d25c07a0e8f [
file
] [
log
] [
blame
]
// PR c++/54812
// { dg-do compile { target c++11 } }
class
A
{
A
()
=
default
;
// { dg-message "private" }
};
A a
;
// { dg-error "context" }
class
B
{
~
B
()
=
default
;
// { dg-message "private" }
};
B b
;
// { dg-error "context" }