Skip to content

Commit 209fe7b

Browse files
authored
Merge pull request #64357 from NuriAmari/fwd-declarations-assert-fix
Add REQUIRES: asserts to swift 6 requiring tests
2 parents 16eadfa + 39414cc commit 209fe7b

12 files changed

+12
-0
lines changed

test/ClangImporter/incomplete_objc_types_availability.swift

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

1111
// REQUIRES: objc_interop
1212
// REQUIRES: executable_test
13+
// REQUIRES: asserts
1314

1415
// Verify that Clang declarations referencing either of the forward declares types "ForwardDeclaredInterface" or
1516
// "ForwardDeclaredProtocol" are usable from Swift.

test/ClangImporter/incomplete_objc_types_base_interface_swift_6.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// REQUIRES: objc_interop
99
// REQUIRES: executable_test
1010
// REQUIRES: OS=macosx
11+
// REQUIRES: asserts
1112

1213
import Foundation
1314
import IncompleteTypeLibrary1

test/ClangImporter/incomplete_objc_types_compatibility_complete_incomplete.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
// REQUIRES: objc_interop
1313
// REQUIRES: executable_test
14+
// REQUIRES: asserts
1415

1516
// "ForwardDeclaredInterface" and "ForwardDeclaredProtocol" are forward declared in IncompleteTypeLibrary1/2, and
1617
// completely declared in CompleteTypes. This test verifies that instances of the complete types can be passed

test/ClangImporter/incomplete_objc_types_compatibility_incomplete_incomplete.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
// REQUIRES: objc_interop
1313
// REQUIRES: executable_test
14+
// REQUIRES: asserts
1415

1516
// Both libraries "IncompleteTypeConsumer1" and "IncompleteTypeConsumer2" forward declare an interface "ForwardDeclaredInterface"
1617
// and a protocol "ForwardDeclaredProtocol". This test verifies that the synthesized Swift declaration created to represent

test/ClangImporter/incomplete_objc_types_full_availability_swift_6.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
// REQUIRES: objc_interop
99
// REQUIRES: executable_test
10+
// REQUIRES: asserts
1011

1112
import IncompleteTypeLibrary1
1213
import CompleteTypes

test/ClangImporter/incomplete_objc_types_importing_limitations_diagnostics.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// RUN: not %target-swift-frontend -swift-version 6 -enable-objc-interop -typecheck -I %S/Inputs/custom-modules/IncompleteTypes %s 2>&1 | %FileCheck %s
33

44
// REQUIRES: objc_interop
5+
// REQUIRES: asserts
56

67
import IncompleteTypeLibrary1
78
import IncompleteNoRootTypeProtocolLibrary

test/ClangImporter/incomplete_objc_types_no_reference.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// RUN: not %target-swift-frontend -swift-version 6 -enable-objc-interop -typecheck -I %S/Inputs/custom-modules/IncompleteTypes %s 2>&1 | %FileCheck %s
33

44
// REQUIRES: objc_interop
5+
// REQUIRES: asserts
56

67
import IncompleteTypeLibrary1
78

test/ClangImporter/incomplete_objc_types_no_root_protocol.swift

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

1010
// REQUIRES: objc_interop
1111
// REQUIRES: executable_test
12+
// REQUIRES: asserts
1213

1314
// Verify that a forward declared protocol not inheriting from NSObject is usable
1415
// from Swift, if cumbersome

test/ClangImporter/incomplete_objc_types_nsproxy.swift

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

1010
// REQUIRES: objc_interop
1111
// REQUIRES: executable_test
12+
// REQUIRES: asserts
1213

1314
// Verify that a forward declared interface for a type inheriting from NSProxy instead
1415
// of NSObject is still usable from Swift.

test/ClangImporter/incomplete_objc_types_swift_definition_imported.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// RUN: not %target-swift-frontend -swift-version 6 -enable-objc-interop -typecheck -I %S/Inputs/custom-modules/IncompleteTypes -I %t %s 2>&1 | %FileCheck %s
55

66
// REQUIRES: objc_interop
7+
// REQUIRES: asserts
78

89
import CompleteSwiftTypes
910
import ObjCLibraryForwardDeclaringCompleteSwiftTypes

test/ClangImporter/incomplete_objc_types_swift_definition_imported_implementationOnly.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// RUN: not %target-swift-frontend -swift-version 6 -enable-objc-interop -typecheck -I %S/Inputs/custom-modules/IncompleteTypes -I %t %s 2>&1 | %FileCheck %s
55

66
// REQUIRES: objc_interop
7+
// REQUIRES: asserts
78

89
@_implementationOnly import CompleteSwiftTypes
910
import ObjCLibraryForwardDeclaringCompleteSwiftTypes

test/ClangImporter/incomplete_objc_types_swift_definition_imported_name_conflict.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// RUN: not %target-swift-frontend -swift-version 6 -enable-objc-interop -typecheck -I %S/Inputs/custom-modules/IncompleteTypes -I %t %s 2>&1 | %FileCheck %s
55

66
// REQUIRES: objc_interop
7+
// REQUIRES: asserts
78

89
import CompleteSwiftTypes
910
import ObjCLibraryForwardDeclaringCompleteSwiftTypes

0 commit comments

Comments
 (0)