gecko-dev/xpcom/tests/static-checker/override-virtual.cpp
Benjamin Smedberg b4cc34446e Bug 500870 - NS_OVERRIDE indicates that a method must override a base-class method, r=taras
--HG--
extra : rebase_source : 3dc3327030dc2cdf45bdd9170c5e9d02908c0d0c
2009-09-04 11:21:31 -04:00

10 lines
98 B
C++

class A
{
int m();
};
class B : A
{
__attribute__((user("NS_override"))) virtual int m();
};