• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 class Base {
3   virtual ~Base(); // expected-note {{implicitly declared private here}}
4 };
5 struct 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 };
9 struct Bar : public Foo {
BarBar10   Bar() { } // expected-note {{implicit destructor for 'Foo' first required here}}
11 };
12 struct Baz {
13   Foo f;
BazBaz14   Baz() { }
15 };
16