gecko/xpcom/tests/static-checker/OverrideFail3.cpp

11 lines
231 B
C++
Raw Normal View History

#include "nscore.h"
struct S {
virtual NS_MUST_OVERRIDE void f();
virtual void g();
};
struct B : S { virtual NS_MUST_OVERRIDE void f(); }; // also ok
struct F : B { }; // ERROR: B's definition of f() is still must-override