| Index: tools/clang/plugins/tests/virtual_specifiers.cpp
|
| diff --git a/tools/clang/plugins/tests/virtual_specifiers.cpp b/tools/clang/plugins/tests/virtual_specifiers.cpp
|
| index f4479a8aad1732b83016f4072c9d4b82581992cd..4d9acd38ac035c2820c5a28f9dc6ca5fc0d7cf73 100644
|
| --- a/tools/clang/plugins/tests/virtual_specifiers.cpp
|
| +++ b/tools/clang/plugins/tests/virtual_specifiers.cpp
|
| @@ -61,3 +61,33 @@ class OverrideAndFinal : public Base {
|
| ~OverrideAndFinal() OVERRIDE FINAL {}
|
| void F() OVERRIDE FINAL {}
|
| };
|
| +
|
| +// Finally, some simple sanity tests that overrides in the testing namespace
|
| +// don't trigger warnings, except for testing::Test.
|
| +namespace testing {
|
| +
|
| +class Test {
|
| + public:
|
| + virtual ~Test();
|
| + virtual void SetUp();
|
| +};
|
| +
|
| +class NotTest {
|
| + public:
|
| + virtual ~NotTest();
|
| + virtual void SetUp();
|
| +};
|
| +
|
| +} // namespace
|
| +
|
| +class MyTest : public testing::Test {
|
| + public:
|
| + virtual ~MyTest();
|
| + virtual void SetUp() override;
|
| +};
|
| +
|
| +class MyNotTest : public testing::NotTest {
|
| + public:
|
| + virtual ~MyNotTest();
|
| + virtual void SetUp() override;
|
| +};
|
|
|