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
196 B
Swift
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
|
|
|