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

14 lines
210 B
C++
Raw Normal View History

#include "nscore.h"
struct Base {
NS_MUST_OVERRIDE void f();
};
struct Intermediate : Base {
NS_MUST_OVERRIDE void f();
};
struct Derived : Intermediate {
// error: must override Intermediate's f()
};