Files
Allan Shortlidge 3a6b563726 test: Stop disabling availability checking in regex literal tests.
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.
2026-09-10 15:46:48 -07:00

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>) {}