Revert commits: 2d738ce3 Help: Add notes for topic 'feature_record_msvc' f73718c9 Features: Enable writing of MSVC compiler feature header. 64c30bdc Features: Record for MSVC C++ 2015 and MSVC C 2010-2015. 225c0ef8 Features: Record for MSVC 2010-2013. This topic was merged to master prematurely, so remove it.
35 lines
359 B
C++
35 lines
359 B
C++
|
|
#if !HAVE_OVERRIDE_CONTROL
|
|
#if EXPECT_OVERRIDE_CONTROL
|
|
#error "Expect override control feature"
|
|
#endif
|
|
#else
|
|
|
|
struct A
|
|
{
|
|
virtual int getA() { return 7; }
|
|
};
|
|
|
|
struct B final : A
|
|
{
|
|
int getA() override { return 42; }
|
|
};
|
|
|
|
#endif
|
|
|
|
#if !HAVE_NULLPTR
|
|
#error "Expect nullptr feature"
|
|
#else
|
|
|
|
const char* getString()
|
|
{
|
|
return nullptr;
|
|
}
|
|
|
|
#endif
|
|
|
|
int main()
|
|
{
|
|
|
|
}
|