mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Test] Disable protocol-conformance-cache tests when tests are optimized.
These tests need to perform various conformance checks that can be statically known, and the optimizer removes them. rdar://155924190
This commit is contained in:
@@ -11,6 +11,11 @@
|
||||
// UNSUPPORTED: DARWIN_SIMULATOR=xros
|
||||
// UNSUPPORTED: use_os_stdlib
|
||||
|
||||
// The optimizer will remove many of these conformance checks due to statically
|
||||
// knowing the result.
|
||||
// UNSUPPORTED: swift_test_mode_optimize
|
||||
// UNSUPPORTED: swift_test_mode_optimize_size
|
||||
|
||||
import Foundation
|
||||
|
||||
protocol Proto {}
|
||||
|
||||
@@ -10,6 +10,11 @@
|
||||
// UNSUPPORTED: DARWIN_SIMULATOR=xros
|
||||
// UNSUPPORTED: use_os_stdlib
|
||||
|
||||
// The optimizer will remove many of these conformance checks due to statically
|
||||
// knowing the result.
|
||||
// UNSUPPORTED: swift_test_mode_optimize
|
||||
// UNSUPPORTED: swift_test_mode_optimize_size
|
||||
|
||||
protocol Proto {}
|
||||
extension Proto {
|
||||
static var selfType: Any.Type { Self.self }
|
||||
|
||||
Reference in New Issue
Block a user