Skip to content

Add REQUIRES: asserts to swift 6 requiring tests #64357

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

// REQUIRES: objc_interop
// REQUIRES: executable_test
// REQUIRES: asserts

// Verify that Clang declarations referencing either of the forward declares types "ForwardDeclaredInterface" or
// "ForwardDeclaredProtocol" are usable from Swift.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
// REQUIRES: objc_interop
// REQUIRES: executable_test
// REQUIRES: OS=macosx
// REQUIRES: asserts

import Foundation
import IncompleteTypeLibrary1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

// REQUIRES: objc_interop
// REQUIRES: executable_test
// REQUIRES: asserts

// "ForwardDeclaredInterface" and "ForwardDeclaredProtocol" are forward declared in IncompleteTypeLibrary1/2, and
// completely declared in CompleteTypes. This test verifies that instances of the complete types can be passed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

// REQUIRES: objc_interop
// REQUIRES: executable_test
// REQUIRES: asserts

// Both libraries "IncompleteTypeConsumer1" and "IncompleteTypeConsumer2" forward declare an interface "ForwardDeclaredInterface"
// and a protocol "ForwardDeclaredProtocol". This test verifies that the synthesized Swift declaration created to represent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

// REQUIRES: objc_interop
// REQUIRES: executable_test
// REQUIRES: asserts

import IncompleteTypeLibrary1
import CompleteTypes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// RUN: not %target-swift-frontend -swift-version 6 -enable-objc-interop -typecheck -I %S/Inputs/custom-modules/IncompleteTypes %s 2>&1 | %FileCheck %s

// REQUIRES: objc_interop
// REQUIRES: asserts

import IncompleteTypeLibrary1
import IncompleteNoRootTypeProtocolLibrary
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// RUN: not %target-swift-frontend -swift-version 6 -enable-objc-interop -typecheck -I %S/Inputs/custom-modules/IncompleteTypes %s 2>&1 | %FileCheck %s

// REQUIRES: objc_interop
// REQUIRES: asserts

import IncompleteTypeLibrary1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

// REQUIRES: objc_interop
// REQUIRES: executable_test
// REQUIRES: asserts

// Verify that a forward declared protocol not inheriting from NSObject is usable
// from Swift, if cumbersome
Expand Down
1 change: 1 addition & 0 deletions test/ClangImporter/incomplete_objc_types_nsproxy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

// REQUIRES: objc_interop
// REQUIRES: executable_test
// REQUIRES: asserts

// Verify that a forward declared interface for a type inheriting from NSProxy instead
// of NSObject is still usable from Swift.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// 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

// REQUIRES: objc_interop
// REQUIRES: asserts

import CompleteSwiftTypes
import ObjCLibraryForwardDeclaringCompleteSwiftTypes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// 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

// REQUIRES: objc_interop
// REQUIRES: asserts

@_implementationOnly import CompleteSwiftTypes
import ObjCLibraryForwardDeclaringCompleteSwiftTypes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// 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

// REQUIRES: objc_interop
// REQUIRES: asserts

import CompleteSwiftTypes
import ObjCLibraryForwardDeclaringCompleteSwiftTypes
Expand Down