summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/defaulted47.C
blob: c4f445b9e1cd651bd9799128ca819d25c07a0e8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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" }