Ensure that there is at least one parse error in this test

This commit is contained in:
Doug Gregor
2022-09-30 17:24:26 -07:00
parent bb59291125
commit e263b0758a

View File

@@ -1,6 +1,6 @@
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -parse -enable-bare-slash-regex -disable-availability-checking -experimental-skip-all-function-bodies -stats-output-dir %t %s
// RUN: %target-swift-frontend -parse -enable-bare-slash-regex -disable-availability-checking -experimental-skip-all-function-bodies -verify -stats-output-dir %t %s
// RUN: %{python} %utils/process-stats-dir.py --set-csv-baseline %t/stats.csv %t
// RUN: %FileCheck -input-file %t/stats.csv %s
@@ -13,6 +13,9 @@
// we don't output any non-zero value.
// CHECK-NOT: {{"Parse.NumFunctionsParsed" [^0]}}
// Ensures there is a parse error
var : Int // expected-error{{expected pattern}}
// Balanced `{}`, so okay.
func a() { / {}/ }
func b() { / \{}/ }