summaryrefslogtreecommitdiffstats
path: root/tests/auto/other/compiler/tst_compiler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/other/compiler/tst_compiler.cpp')
-rw-r--r--tests/auto/other/compiler/tst_compiler.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/auto/other/compiler/tst_compiler.cpp b/tests/auto/other/compiler/tst_compiler.cpp
index 55fab00156..121d731757 100644
--- a/tests/auto/other/compiler/tst_compiler.cpp
+++ b/tests/auto/other/compiler/tst_compiler.cpp
@@ -870,11 +870,14 @@ void tst_Compiler::cxx11_default_members()
};
class DefaultMembersChild: public DefaultMembers
{
+ DefaultMembersChild(const DefaultMembersChild &) : DefaultMembers() {}
public:
DefaultMembersChild():DefaultMembers() {};
+ DefaultMembersChild(DefaultMembersChild &&) = default;
};
DefaultMembersChild dm;
- Q_UNUSED(dm);
+ DefaultMembersChild dm2 = std::move(dm);
+ Q_UNUSED(dm2);
#endif
}