diff options
Diffstat (limited to 'tests/skipped-base-method/main.cpp')
-rw-r--r-- | tests/skipped-base-method/main.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/skipped-base-method/main.cpp b/tests/skipped-base-method/main.cpp new file mode 100644 index 00000000..9bdb7945 --- /dev/null +++ b/tests/skipped-base-method/main.cpp @@ -0,0 +1,27 @@ +#include <QtCore/QString> + +class Base { +public: + virtual void method1() {} + virtual void method2() {} + virtual void method3() {} +}; + +class Derived : public Base { +public: + virtual void method1() override {} + void method3() override = 0; +}; + +class DerivedDerived : public Derived { +public: + void test() + { + Base::method1(); // Warn + Derived::method1(); // OK + method1(); + + Base::method2(); // OK + Base::method3(); // OK + } +}; |