CMake/Tests/Module/WriteCompilerDetectionHeader/main_bare.cpp
Rolf Eike Beer f38d050231 WCDH: introduce BARE_FEATURES
This allows defining compat versions of some C/C++ features with the name of the
keyword itself, so all code can look as if it was written for the new language
standard.
2018-04-03 20:56:28 +02:00

24 lines
274 B
C++

#include "test_compiler_detection_bare_features.h"
class base
{
public:
virtual ~base() {}
virtual void baz() = 0;
};
class foo final
{
public:
virtual ~foo() {}
char* bar;
void baz() noexcept override { bar = nullptr; }
};
int main()
{
foo f;
return 0;
}