Files
swift-mirror/test/Parse/hashbang_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

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