Skip to content

Commit 412fb93

Browse files
authored
Merge pull request #73059 from kavon/fix-sil-tests-ncg
Test: add missing `import Swift` for Copyable
2 parents d76dbb1 + 6e97a5d commit 412fb93

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/SILOptimizer/moveonly_addresschecker_unmaximized.sil

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,13 @@
99
// RUN: | %FileCheck %s
1010

1111
import Builtin
12+
import Swift
1213

13-
@_moveOnly
14-
struct M {
14+
struct M: ~Copyable {
1515
deinit {}
1616
}
1717

18-
@_moveOnly
19-
struct M4 {
18+
struct M4: ~Copyable {
2019
let s1: M
2120
let s2: M
2221
let s3: M

test/SILOptimizer/ownership_liveness_unit.sil

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
sil_stage canonical
1010

1111
import Builtin
12+
import Swift
1213

1314
struct NCInt : ~Copyable {
1415
var i: Builtin.Int64

0 commit comments

Comments
 (0)