mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Ensure that there is at least one parse error in this test
This commit is contained in:
@@ -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() { / \{}/ }
|
||||
|
||||
Reference in New Issue
Block a user