Home | History | Annotate | Download | only in class.protected
      1 // RUN: %clang_cc1 -fsyntax-only -verify %s
      2 
      3 // PR12497
      4 namespace 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