File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed
test/library-tests/special_members/generated_copy Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -286,6 +286,16 @@ class Class extends UserType {
286286 not this .implicitCopyConstructorDeleted ( ) and
287287 forall ( CopyConstructor cc | cc = this .getAMemberFunction ( ) |
288288 cc .isCompilerGenerated ( ) and not cc .isDeleted ( )
289+ ) and
290+ (
291+ not this instanceof ClassTemplateInstantiation
292+ or
293+ this .( ClassTemplateInstantiation ) .getTemplate ( ) .hasImplicitCopyConstructor ( )
294+ ) and
295+ (
296+ not this instanceof PartialClassTemplateSpecialization
297+ or
298+ this .( PartialClassTemplateSpecialization ) .getPrimaryTemplate ( ) .hasImplicitCopyConstructor ( )
289299 )
290300 }
291301
@@ -301,6 +311,18 @@ class Class extends UserType {
301311 not this .implicitCopyAssignmentOperatorDeleted ( ) and
302312 forall ( CopyAssignmentOperator ca | ca = this .getAMemberFunction ( ) |
303313 ca .isCompilerGenerated ( ) and not ca .isDeleted ( )
314+ ) and
315+ (
316+ not this instanceof ClassTemplateInstantiation
317+ or
318+ this .( ClassTemplateInstantiation ) .getTemplate ( ) .hasImplicitCopyAssignmentOperator ( )
319+ ) and
320+ (
321+ not this instanceof PartialClassTemplateSpecialization
322+ or
323+ this .( PartialClassTemplateSpecialization )
324+ .getPrimaryTemplate ( )
325+ .hasImplicitCopyAssignmentOperator ( )
304326 )
305327 }
306328
Original file line number Diff line number Diff line change 1111| difference::Base | can | does NOT | have implicit copy constructor |
1212| difference::OnlyAssign | can NOT | does NOT | have implicit copy constructor |
1313| difference::OnlyCtor | can | does | have implicit copy constructor |
14- | instantiated_explicit_ctor::Wrapper<int> | can | does | have implicit copy constructor |
14+ | instantiated_explicit_ctor::Wrapper<int> | can | does NOT | have implicit copy constructor |
1515| moves::MoveAssign | can NOT | does NOT | have implicit copy constructor |
1616| moves::MoveCtor | can NOT | does NOT | have implicit copy constructor |
1717| private_cc::C | can | does NOT | have implicit copy constructor |
You can’t perform that action at this time.
0 commit comments