1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -fsyntax-only -verify %s 2*f4a2713aSLionel Sambuc class Base { 3*f4a2713aSLionel Sambuc virtual ~Base(); // expected-note {{implicitly declared private here}} 4*f4a2713aSLionel Sambuc }; 5*f4a2713aSLionel Sambuc struct Foo : public Base { // expected-error {{base class 'Base' has private destructor}} 6*f4a2713aSLionel Sambuc const int kBlah = 3; // expected-warning {{is a C++11 extension}} 7*f4a2713aSLionel Sambuc Foo(); 8*f4a2713aSLionel Sambuc }; 9*f4a2713aSLionel Sambuc struct Bar : public Foo { BarBar10*f4a2713aSLionel Sambuc Bar() { } // expected-note {{implicit destructor for 'Foo' first required here}} 11*f4a2713aSLionel Sambuc }; 12*f4a2713aSLionel Sambuc struct Baz { 13*f4a2713aSLionel Sambuc Foo f; BazBaz14*f4a2713aSLionel Sambuc Baz() { } 15*f4a2713aSLionel Sambuc }; 16