Skip to content

Commit 6f55aa4

Browse files
committed
Tests: Remove -disable-availability-checking in tests that use opaque types.
Use the `%target-swift-5.1-abi-triple` substitution to compile the tests for deployment to the minimum OS versions required for use of opaque types, instead of disabling availability checking.
1 parent cd87b45 commit 6f55aa4

File tree

55 files changed

+84
-84
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+84
-84
lines changed

test/AssociatedTypeInference/rdar122596633-2.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-typecheck-verify-swift -disable-availability-checking
1+
// RUN: %target-typecheck-verify-swift -target %target-swift-5.1-abi-triple
22

33
public protocol P<A> {
44
associatedtype A

test/AutoDiff/Sema/derivative_attr_type_checking.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %target-swift-frontend-typecheck -verify -disable-availability-checking %s -package-name myPkg
2-
// RUN: %target-swift-frontend-typecheck -enable-testing -verify -disable-availability-checking %s -package-name myPkg
1+
// RUN: %target-swift-frontend-typecheck -verify -target %target-swift-5.1-abi-triple %s -package-name myPkg
2+
// RUN: %target-swift-frontend-typecheck -enable-testing -verify -target %target-swift-5.1-abi-triple %s -package-name myPkg
33

44
// Swift.AdditiveArithmetic:3:17: note: cannot yet register derivative default implementation for protocol requirements
55

test/AutoDiff/Sema/differentiable_attr_type_checking.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %target-swift-frontend-typecheck -verify -disable-availability-checking %s
2-
// RUN: %target-swift-frontend-typecheck -enable-testing -verify -disable-availability-checking %s
1+
// RUN: %target-swift-frontend-typecheck -verify -target %target-swift-5.1-abi-triple %s
2+
// RUN: %target-swift-frontend-typecheck -enable-testing -verify -target %target-swift-5.1-abi-triple %s
33

44
import _Differentiation
55

test/AutoDiff/compiler_crashers_fixed/issue-55099-differentiation-opaque-result-type.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not %target-swift-frontend -disable-availability-checking -emit-sil -verify %s
1+
// RUN: not %target-swift-frontend -target %target-swift-5.1-abi-triple -emit-sil -verify %s
22

33
// https://github.com/apple/swift/issues/55099
44
// Differentiation transform crashes for original function with opaque

test/Constraints/ambiguity_diagnostics.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-typecheck-verify-swift -swift-version 5 -disable-availability-checking
1+
// RUN: %target-typecheck-verify-swift -swift-version 5 -target %target-swift-5.1-abi-triple
22

33
protocol View {
44
}

test/Constraints/array_literal.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-typecheck-verify-swift -disable-availability-checking
1+
// RUN: %target-typecheck-verify-swift -target %target-swift-5.1-abi-triple
22

33
struct IntList : ExpressibleByArrayLiteral {
44
typealias Element = Int

test/Constraints/result_builder_conjunction_selection.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-typecheck-verify-swift -debug-constraints -disable-availability-checking 2>%t.err
1+
// RUN: %target-typecheck-verify-swift -debug-constraints -target %target-swift-5.1-abi-triple 2>%t.err
22
// RUN: %FileCheck %s < %t.err
33

44
protocol P<Output> {

test/Constraints/result_builder_diags.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-typecheck-verify-swift -disable-availability-checking
1+
// RUN: %target-typecheck-verify-swift -target %target-swift-5.1-abi-triple
22

33
enum Either<T,U> {
44
case first(T)

test/Constraints/result_builder_opaque_result.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -disable-availability-checking -typecheck -verify %s
1+
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple -typecheck -verify %s
22

33
protocol Taggable {}
44
extension String: Taggable {}

test/Constraints/result_builder_opaque_result_structural.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-typecheck-verify-swift -disable-availability-checking
1+
// RUN: %target-typecheck-verify-swift -target %target-swift-5.1-abi-triple
22

33
@resultBuilder
44
struct TupleBuilder {

0 commit comments

Comments
 (0)