mirror of
https://github.com/apple/swift.git
synced 2026-10-06 12:37:28 +02:00
These tests pass -disable-availability-checking to silence diagnostics about Regex and the rest of the _StringProcessing module, which require the Swift 5.7 runtime. Pass -target %target-swift-5.7-abi-triple instead.
14 lines
598 B
Swift
14 lines
598 B
Swift
// RUN: %target-typecheck-verify-swift -target %target-swift-5.7-abi-triple -enable-bare-slash-regex -enable-experimental-string-processing
|
|
// RUN: %target-typecheck-verify-swift -target %target-swift-5.7-abi-triple -enable-experimental-string-processing -enable-bare-slash-regex
|
|
// RUN: %target-typecheck-verify-swift -target %target-swift-5.7-abi-triple -disable-experimental-string-processing -enable-experimental-string-processing -enable-bare-slash-regex
|
|
|
|
// REQUIRES: swift_swift_parser
|
|
|
|
prefix operator /
|
|
|
|
_ = /x/
|
|
_ = #/x/#
|
|
|
|
@available(SwiftStdlib 5.7, *)
|
|
func foo(_ x: Regex<Substring>) {}
|