Files
swift-mirror/test/StringProcessing/Parse/regex.swift
Arnold Schwaighofer 9511994e52 Revert "Merge pull request #40595 from hamishknight/straw-bales"
This reverts commit a67a0436f7, reversing
changes made to 9965df76d0.

This commit or the earlier commit this commit is based on (#40531) broke the
incremental bot.
2021-12-18 11:02:37 -08:00

11 lines
234 B
Swift

// RUN: %target-typecheck-verify-swift -enable-experimental-string-processing
// REQUIRES: libswift
var s = 'abc'
var s1 = ('*', '+', '?')
// expected-error@-1 3{{cannot start regex with quantifier}}
var s2 = '\w+'
var s3 = '\'\\'