CMake/Tests/CompileFeatures/genex_test.cpp

22 lines
212 B
C++

#if !HAVE_OVERRIDE_CONTROL
#error "Expect override control feature"
#else
struct A
{
virtual int getA() { return 7; }
};
struct B final : A
{
int getA() override { return 42; }
};
#endif
int main()
{
}