mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
A parse-only option is needed for parse performance tracking and the current option also includes semantic analysis.
23 lines
827 B
Swift
23 lines
827 B
Swift
// RUN: %target-typecheck-verify-swift -parse-as-library
|
|
|
|
//===--- Recovery for extra braces at top level.
|
|
//===--- Keep this test the first one in the file.
|
|
|
|
// Check that we handle multiple consecutive right braces.
|
|
} // expected-error{{extraneous '}' at top level}} {{1-3=}}
|
|
} // expected-error{{extraneous '}' at top level}} {{1-3=}}
|
|
|
|
func foo() {}
|
|
// Check that we handle multiple consecutive right braces.
|
|
} // expected-error{{extraneous '}' at top level}} {{1-3=}}
|
|
} // expected-error{{extraneous '}' at top level}} {{1-3=}}
|
|
func bar() {}
|
|
|
|
//===--- Recovery for extra braces at top level.
|
|
//===--- Keep this test the last one in the file.
|
|
|
|
// Check that we handle multiple consecutive right braces.
|
|
} // expected-error{{extraneous '}' at top level}} {{1-3=}}
|
|
} // expected-error{{extraneous '}' at top level}} {{1-3=}}
|
|
|