mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
There's a lot more work to do here, but start to categorize tests along the lines of what a specification might look like, with directories (chapters) for basic concepts, declarations, expressions, statements, etc. Swift SVN r9958
7 lines
213 B
Swift
7 lines
213 B
Swift
// RUN: %swift %s -parse-as-library -verify
|
|
|
|
print(10) // expected-error {{expressions are not allowed at the top level}}
|
|
if true { // expected-error {{statements are not allowed at the top level}}
|
|
print(10)
|
|
}
|