mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
12 lines
351 B
Swift
12 lines
351 B
Swift
// RUN: %target-typecheck-verify-swift -enable-experimental-string-processing
|
|
// REQUIRES: swift_in_compiler
|
|
|
|
_ = '/abc/'
|
|
|
|
_ = ('/[*/', '/+]/', '/.]/')
|
|
// expected-error@-1 {{cannot parse regular expression: quantifier '+' must appear after expression}}
|
|
// expected-error@-2 {{cannot parse regular expression: expected ']'}}
|
|
|
|
_ = '/\w+/'
|
|
_ = '/\'\\/'
|