Skip to content

Commit 040e95c

Browse files
committed
[NCGenerics] extra coverage for interface emission
1 parent 4657fa9 commit 040e95c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

test/ModuleInterface/Inputs/NoncopyableGenerics_Misc.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,5 @@ public protocol TestAssocTypes {
6666
public typealias SomeAlias<G> = Hello<G>
6767

6868
public typealias AliasWithInverse<G> = Hello<G> where G: ~Copyable, G: ~Escapable
69+
70+
public struct RudePointer<T: ~Copyable>: Copyable {}

test/ModuleInterface/noncopyable_generics.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ import NoncopyableGenerics_Misc
9393
// CHECK-MISC: #if compiler(>=5.3) && $NoncopyableGenerics
9494
// CHECK-MISC-NEXT: public typealias AliasWithInverse<G> = {{.*}}.Hello<G> where G : ~Copyable, G : ~Escapable
9595

96+
// CHECK-MISC: #if compiler(>=5.3) && $NoncopyableGenerics
97+
// CHECK-MISC-NEXT: public struct RudePointer<T> : Swift.Copyable where T : ~Copyable {
98+
9699
///////////////////////////////////////////////////////////////////////
97100
// Synthesized conditional conformances are next
98101

0 commit comments

Comments
 (0)