Files
swift-mirror/test/Parse/ConditionalCompilation/trailingClosureOnTargetConfig.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

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