mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-12 09:41:26 +00:00
205d044552
We'd also like for "C++11" or "c++11" to be used for the warning groups, but without removing the old warning flags. Patches welcome; I've run out of time to work on this today. llvm-svn: 141801
16 lines
469 B
C++
16 lines
469 B
C++
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
class Base {
|
|
virtual ~Base(); // expected-note {{implicitly declared private here}}
|
|
};
|
|
struct Foo : public Base { // expected-error {{base class 'Base' has private destructor}}
|
|
const int kBlah = 3; // expected-warning {{accepted as a C++11 extension}}
|
|
Foo();
|
|
};
|
|
struct Bar : public Foo {
|
|
Bar() { } // expected-note {{implicit default destructor for 'Foo' first required here}}
|
|
};
|
|
struct Baz {
|
|
Foo f;
|
|
Baz() { }
|
|
};
|