summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/pr71979.C
blob: e67eed111ac25e6ea9f9768e2da75266167b9467 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR c++/71979
// { dg-do compile { target c++11 } }

struct A
{ 
  A & operator= (A &);
};

struct B : A {};   // { dg-error "cannot bind" }

void foo ()
{ 
  B b;
  b = B ();  // { dg-error "use of deleted" }
}