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 {
286
286
not this .implicitCopyConstructorDeleted ( ) and
287
287
forall ( CopyConstructor cc | cc = this .getAMemberFunction ( ) |
288
288
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 ( )
289
299
)
290
300
}
291
301
@@ -301,6 +311,18 @@ class Class extends UserType {
301
311
not this .implicitCopyAssignmentOperatorDeleted ( ) and
302
312
forall ( CopyAssignmentOperator ca | ca = this .getAMemberFunction ( ) |
303
313
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 ( )
304
326
)
305
327
}
306
328
Original file line number Diff line number Diff line change 11
11
| difference::Base | can | does NOT | have implicit copy constructor |
12
12
| difference::OnlyAssign | can NOT | does NOT | have implicit copy constructor |
13
13
| 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 |
15
15
| moves::MoveAssign | can NOT | does NOT | have implicit copy constructor |
16
16
| moves::MoveCtor | can NOT | does NOT | have implicit copy constructor |
17
17
| private_cc::C | can | does NOT | have implicit copy constructor |
You can’t perform that action at this time.
0 commit comments