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.
7 lines
269 B
Swift
7 lines
269 B
Swift
#!/usr/bin/swift // expected-error {{hashbang line is allowed only in the main file}}
|
|
class Foo {}
|
|
// Check that we diagnose and skip the hashbang at the beginning of the file
|
|
// when compiling in library mode.
|
|
// RUN: %target-typecheck-verify-swift -parse-as-library
|
|
|