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

9 lines
161 B
C++
Raw Normal View History

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