aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/defaulted47.C
blob: f4b62a3c659a75bcb13dd99b50ab25641536bb61 (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-error "private" }
};

A a;               // { dg-error "context" }

class B
{
  ~B() = default;  // { dg-error "private" }
};

B b;               // { dg-error "context" }