Skip to content

Commit 05185dc

Browse files
committed
Test: import Swift for the Copyable type
1 parent ee12fd6 commit 05185dc

6 files changed

+9
-0
lines changed

test/SIL/type_lowering_unit.sil

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
sil_stage raw
44

55
import Builtin
6+
import Swift
67

78
struct S : ~Copyable {}
89

test/SILOptimizer/earlycodemotion_moveonly.sil

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
sil_stage canonical
44

55
import Builtin
6+
import Swift
67

78
struct FileDescriptor: ~Copyable {
89
var fd: Builtin.Int64

test/SILOptimizer/instruction_deleter.sil

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %target-sil-opt -test-runner %s -o /dev/null 2>&1 | %FileCheck %s
22

3+
import Swift
4+
35
struct MOS : ~Copyable {}
46

57
sil @getMOS : $() -> (@owned MOS)

test/SILOptimizer/moveonly_addresschecker_di_interactions.sil

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

77
sil_stage raw
88

9+
import Swift
10+
911
fileprivate final class _Box<T> {
1012
var value: _Node<T>
1113

test/SILOptimizer/moveonly_temp_allocation_elim.sil

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

33
sil_stage raw
44

5+
import Swift
6+
57
public class Klass {}
68

79
public struct Empty : ~Copyable {}

test/SILOptimizer/sil_combine_moveonly.sil

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
sil_stage canonical
44

55
import Builtin
6+
import Swift
67

78
struct S : ~Copyable {
89
deinit {}

0 commit comments

Comments
 (0)