Skip to content

Commit 8c50906

Browse files
committed
add Copyable to a few -parse-stdlib tests
Since these tests may in the future have a move-only type in it. If you're using `-parse-stdlib -module-name Swift` it's a good add Copyable, but not required, at this time.
1 parent 08231bf commit 8c50906

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

test/SILGen/unmanaged_ownership.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11

22
// RUN: %target-swift-emit-silgen -parse-stdlib -module-name Swift %s | %FileCheck %s
33

4+
@_marker protocol _Copyable {}
5+
46
class C {}
57

68
enum Optional<T> {

test/SILOptimizer/nonescaping_partial_apply_gauntlet.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
// RUN: %target-swift-frontend -emit-sil -parse-stdlib -module-name Swift %s
66
// RUN: %target-swift-frontend -emit-sil -O -parse-stdlib -module-name Swift %s
77

8+
@_marker protocol _Copyable {}
89
precedencegroup CastingPrecedence {}
910
precedencegroup AssignmentPrecedence {}
1011

0 commit comments

Comments
 (0)