Files
swift-mirror/test/Parse/recovery_library.swift
David Farler b7d17b25ba Rename -parse flag to -typecheck
A parse-only option is needed for parse performance tracking and the
current option also includes semantic analysis.
2016-11-28 10:50:55 -08:00

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=}}