p1-cxx11.cpp revision 12d8d80fb0f8d9cddecb34da0f37b0dc9fcaf5e6
1// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3// PR12497
4namespace test0 {
5  class A {
6  protected:
7    A() {}
8    A(const A &) {}
9    ~A() {}
10    A &operator=(const A &a) { return *this; }
11  };
12
13  class B : public A {};
14
15  void test() {
16    B b1;
17    B b2 = b1;
18    b1 = b2;
19  }
20}
21