You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
274 B
24 lines
274 B
6 years ago
|
#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;
|
||
|
}
|