Files
swift-mirror/test/Parse/hashbang_main.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
196 B
Swift

#!/usr/bin/swift
let x = 42
x + x // expected-warning {{result of operator '+' is unused}}
// Check that we skip the hashbang at the beginning of the file.
// RUN: %target-typecheck-verify-swift