diff --git a/tests/test_class_sh_inheritance.cpp b/tests/test_class_sh_inheritance.cpp index 81049061f..646b4fc31 100644 --- a/tests/test_class_sh_inheritance.cpp +++ b/tests/test_class_sh_inheritance.cpp @@ -13,6 +13,12 @@ struct base_template { virtual ~base_template() = default; virtual int id() const { return base_id; } int base_id; + + // Some compilers complain about implicitly defined versions of some of the following: + base_template(const base_template &) = default; + base_template(base_template &&) = default; + base_template &operator=(const base_template &) = default; + base_template &operator=(base_template &&) = default; }; using base = base_template<100>;