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

8 lines
156 B
C++
Raw Normal View History

#include "nscore.h"
struct S {
virtual NS_MUST_OVERRIDE void f();
virtual void g();
};
struct C : S { virtual void g(); }; // ERROR: must override f()