Skip to content
Snippets Groups Projects
Commit 3f77655d authored by Daniel Pfeifer's avatar Daniel Pfeifer
Browse files

CM_OVERRIDE: fix feature test for clang

Clang refuses to default initialize an instance of a class that does not
have a default constructor.  Fix the check by adding default
constructors.  Don't use brace initialization like it is proposed in the
error message.  We want to test the override support independent from
the support for brace initialization.
parent b9b3ec4d
No related branches found
No related tags found
No related merge requests found
struct Foo
{
Foo() {}
virtual ~Foo() {}
virtual int test() const = 0;
};
struct Bar : Foo
{
Bar() {}
~Bar() override {}
int test() const override { return 0; }
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment