Files
swift-mirror/test/Parse/recovery_library.swift
Dmitri Hrybenko 2b7c36c1a8 Parser recovery: skip multiple right braces at top level, both at the beginning
and at the end of the file

rdar://15267668


Swift SVN r9544
2013-10-21 17:55:31 +00:00

12 lines
283 B
Swift

// RUN: %swift %s -parse-as-library -verify
//===--- Recovery for extra braces at top level.
//===--- Keep this test the first one in the file.
} // expected-error{{extraneous '}' at top level}} {{1-2=}}
func foo() {}
} // expected-error{{extraneous '}' at top level}} {{1-2=}}