gecko-dev/xpcom/tests/static-checker/OverrideFail2.cpp
Taras Glek a7a24a1627 Bug 512726 - Add NS_MUST_OVERRIDE static annotation. r=bsmedberg
--HG--
extra : rebase_source : 4f3034c93cc76c7504d1cfb21953c495c35d068f
2009-09-18 10:26:13 -07:00

9 lines
161 B
C++

#include "nscore.h"
struct S {
virtual NS_MUST_OVERRIDE void f();
virtual void g();
};
struct D : S { virtual void f(int); }; // ERROR: different overload