Skip to content

Commit 2a77692

Browse files
authored
Merge pull request #61398 from DougGregor/extra-syntax-error-in-stressful-test
2 parents 18143e2 + e263b07 commit 2a77692

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/StringProcessing/Parse/forward-slash-regex-skipping-allowed.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %empty-directory(%t)
22

3-
// RUN: %target-swift-frontend -parse -enable-bare-slash-regex -disable-availability-checking -experimental-skip-all-function-bodies -stats-output-dir %t %s
3+
// RUN: %target-swift-frontend -parse -enable-bare-slash-regex -disable-availability-checking -experimental-skip-all-function-bodies -verify -stats-output-dir %t %s
44
// RUN: %{python} %utils/process-stats-dir.py --set-csv-baseline %t/stats.csv %t
55
// RUN: %FileCheck -input-file %t/stats.csv %s
66

@@ -13,6 +13,9 @@
1313
// we don't output any non-zero value.
1414
// CHECK-NOT: {{"Parse.NumFunctionsParsed" [^0]}}
1515

16+
// Ensures there is a parse error
17+
var : Int // expected-error{{expected pattern}}
18+
1619
// Balanced `{}`, so okay.
1720
func a() { / {}/ }
1821
func b() { / \{}/ }

0 commit comments

Comments
 (0)