1 // RUN: %clang_cc1 -fsyntax-only -verify %s 2 // expected-no-diagnostics 3 class Base { 4 protected: 5 Base(int val); 6 }; 7 8 9 class Derived : public Base { 10 public: 11 Derived(int val); 12 }; 13 14 Derived(int val)15 Derived::Derived(int val) 16 : Base( val ) 17 { 18 } 19