Files
swift-mirror/test/StringProcessing/Parse/regex.swift
Erik Eckstein 3d33f11e6c cmake/build-script: rename the libswift option to "bootstrapping"
In cmake, rename LIBSWIFT_BUILD_MODE to BOOTSTRAPPING_MODE.
Also, rename the lit feature "libswift" to "swift_in_compiler".
2021-12-22 11:31:52 +01:00

11 lines
235 B
Swift

// RUN: %target-typecheck-verify-swift -enable-experimental-string-processing
// REQUIRES: swift_in_compiler
_ = '/abc/'
_ = ('/[*/', '/+]/', '/.]/')
// expected-error@-1 {{cannot parse regular expression}}
_ = '/\w+/'
_ = '/\'\\/'