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