Skip to content

Commit 0405721

Browse files
authored
Merge pull request #40509 from davezarzycki/pr40509
[testing] Better cross-platform testing
2 parents 103cc32 + aa5285a commit 0405721

12 files changed

+35
-39
lines changed

test/IRGen/exactcast2.sil

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-build-swift %s -Xfrontend -enable-objc-interop -emit-ir -o -
1+
// RUN: %target-build-swift %s -emit-ir -o -
22
// REQUIRES: executable_test
33

44
// Make sure we are not crashing here.
@@ -13,12 +13,12 @@ class Hash {
1313
init()
1414
func update()
1515
func hash()
16-
@objc deinit
16+
deinit
1717
}
1818

1919
final class MD5 : Hash {
2020
override init()
21-
@objc deinit
21+
deinit
2222
}
2323

2424
sil @_TFC4main4HashcfMS0_FT_S0_ : $@convention(method) (@owned Hash) -> @owned Hash

test/SILOptimizer/devirt_access.sil

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-sil-opt -enable-objc-interop -enable-sil-verify-all %s -devirtualizer | %FileCheck %s
1+
// RUN: %target-sil-opt -enable-sil-verify-all %s -devirtualizer | %FileCheck %s
22

33
sil_stage canonical
44

@@ -9,7 +9,7 @@ import SwiftShims
99
class K {
1010
func ping() -> Int
1111
private func pong() -> Int
12-
@objc deinit
12+
deinit
1313
init()
1414
}
1515

@@ -41,27 +41,27 @@ sil_vtable K {
4141
class X
4242
{
4343
private func ping() -> Int
44-
@objc deinit
44+
deinit
4545
init()
4646
}
4747

4848
class Y : X
4949
{
50-
@objc deinit
50+
deinit
5151
override init()
5252
}
5353

5454
class A
5555
{
5656
private func ping() -> Int
57-
@objc deinit
57+
deinit
5858
init()
5959
}
6060

6161
class B : A
6262
{
6363
override func ping() -> Int
64-
@objc deinit
64+
deinit
6565
override init()
6666
}
6767

test/SILOptimizer/devirt_access_ownership.sil

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-sil-opt -enable-objc-interop -enable-sil-verify-all %s -devirtualizer | %FileCheck %s
1+
// RUN: %target-sil-opt -enable-sil-verify-all %s -devirtualizer | %FileCheck %s
22

33
sil_stage canonical
44

@@ -9,7 +9,7 @@ import SwiftShims
99
class K {
1010
func ping() -> Int
1111
private func pong() -> Int
12-
@objc deinit
12+
deinit
1313
init()
1414
}
1515

@@ -41,27 +41,27 @@ sil_vtable K {
4141
class X
4242
{
4343
private func ping() -> Int
44-
@objc deinit
44+
deinit
4545
init()
4646
}
4747

4848
class Y : X
4949
{
50-
@objc deinit
50+
deinit
5151
override init()
5252
}
5353

5454
class A
5555
{
5656
private func ping() -> Int
57-
@objc deinit
57+
deinit
5858
init()
5959
}
6060

6161
class B : A
6262
{
6363
override func ping() -> Int
64-
@objc deinit
64+
deinit
6565
override init()
6666
}
6767

test/SILOptimizer/devirt_access_serialized.sil

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-sil-opt -enable-objc-interop -enable-sil-verify-all %s -devirtualizer | %FileCheck %s
1+
// RUN: %target-sil-opt -enable-sil-verify-all %s -devirtualizer | %FileCheck %s
22

33
sil_stage canonical
44

@@ -9,13 +9,13 @@ import SwiftShims
99
class X
1010
{
1111
private func ping() -> Int
12-
@objc deinit
12+
deinit
1313
init()
1414
}
1515

1616
class Y : X
1717
{
18-
@objc deinit
18+
deinit
1919
override init()
2020
}
2121

test/SILOptimizer/devirt_access_serialized_ownership.sil

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-sil-opt -enable-objc-interop -enable-sil-verify-all %s -devirtualizer | %FileCheck %s
1+
// RUN: %target-sil-opt -enable-sil-verify-all %s -devirtualizer | %FileCheck %s
22

33
sil_stage canonical
44

@@ -9,13 +9,13 @@ import SwiftShims
99
class X
1010
{
1111
private func ping() -> Int
12-
@objc deinit
12+
deinit
1313
init()
1414
}
1515

1616
class Y : X
1717
{
18-
@objc deinit
18+
deinit
1919
override init()
2020
}
2121

test/SILOptimizer/devirtualize_protocol_composition_two_stores.sil

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
// RUN: %target-sil-opt -O -wmo -enable-sil-verify-all %s | %FileCheck %s
22

3-
// REQUIRES: objc_interop
4-
53
sil_stage canonical
64

75
import Builtin
86
import Swift
97
import SwiftShims
108

119
public class A {
12-
@objc deinit
10+
deinit
1311
init()
1412
}
1513

@@ -19,13 +17,13 @@ public protocol P {
1917

2018
public class B : A, P {
2119
public func foo() -> Int64
22-
@objc deinit
20+
deinit
2321
override init()
2422
}
2523

2624
public class C : A, P {
2725
public func foo() -> Int64
28-
@objc deinit
26+
deinit
2927
override init()
3028
}
3129

test/SILOptimizer/sil_combine_objc.sil

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// RUN: %target-sil-opt -enable-sil-verify-all %s -sil-combine | %FileCheck %s
2-
// REQUIRES: objc_interop
1+
// RUN: %target-sil-opt -enable-objc-interop -enable-sil-verify-all %s -sil-combine | %FileCheck %s
32

43
// See https://bugs.swift.org/browse/SR-5065, rdar://32511494
54
// XFAIL: *

test/SILOptimizer/sil_combine_objc_ossa.sil

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// RUN: %target-sil-opt -enable-sil-verify-all %s -sil-combine | %FileCheck %s
2-
// REQUIRES: objc_interop
1+
// RUN: %target-sil-opt -enable-objc-interop -enable-sil-verify-all %s -sil-combine | %FileCheck %s
32

43
// See https://bugs.swift.org/browse/SR-5065, rdar://32511494
54
// XFAIL: *

test/SILOptimizer/sil_simplify_instrs.sil

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-sil-opt -enable-objc-interop -enable-sil-verify-all %s -sil-combine | %FileCheck %s
1+
// RUN: %target-sil-opt -enable-sil-verify-all %s -sil-combine | %FileCheck %s
22

33
import Builtin
44
import Swift
@@ -132,7 +132,7 @@ bb0(%x : $Builtin.Int64):
132132
class IntClass {
133133
@_hasStorage var value: Builtin.Int32 { get set }
134134
init(value: Builtin.Int32)
135-
@objc deinit
135+
deinit
136136
}
137137

138138
enum SortaOptional1 {

test/SILOptimizer/sil_simplify_instrs_ossa.sil

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-sil-opt -enable-objc-interop -enable-sil-verify-all %s -sil-combine | %FileCheck %s
1+
// RUN: %target-sil-opt -enable-sil-verify-all %s -sil-combine | %FileCheck %s
22

33
sil_stage canonical
44

@@ -134,7 +134,7 @@ bb0(%x : $Builtin.Int64):
134134
class IntClass {
135135
@_hasStorage var value: Builtin.Int32 { get set }
136136
init(value: Builtin.Int32)
137-
@objc deinit
137+
deinit
138138
}
139139

140140
enum SortaOptional1 {

0 commit comments

Comments
 (0)