mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
A parse-only option is needed for parse performance tracking and the current option also includes semantic analysis.
10 lines
243 B
Swift
10 lines
243 B
Swift
// RUN: %swift -typecheck %s -verify -D FOO -D BAZ -target x86_64-apple-macosx10.9 -parse-stdlib
|
|
|
|
struct Foo {}
|
|
|
|
func useFoo(_ foo: Foo) {}
|
|
|
|
#if arch(x86_64) && os(OSX)
|
|
useFoo(Foo()) // This should not be parsed as a trailing closure
|
|
#endif
|