blob: 308029540bdaf9733f33b74dd3bb98c591338665 [file] [log] [blame]
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1
// REQUIRES: tools-release,no_asan
func test(strings: [String]) {
for string in strings {
let _ = string.split(omittingEmptySubsequences: false) { $0 == "C" || $0 == "D" || $0 == "H" || $0 == "S"}
// expected-error@-1 {{the compiler is unable to type-check this expression in reasonable time}}
}
}