repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
defaulted47.C
blob
c4f445b9e1cd651bd9799128ca819d25c07a0e8f
1
// PR c++/54812
2
// { dg-do compile { target c++11 } }
3
4
class A
5
{
6
A() = default; // { dg-message "private" }
7
};
8
9
A a; // { dg-error "context" }
10
11
class B
12
{
13
~B() = default; // { dg-message "private" }
14
};
15
16
B b; // { dg-error "context" }