Files
swift-mirror/test/Parse/ConditionalCompilation/trailingClosureOnTargetConfig.swift
Jordan Rose 7954be4d87 [test] Move BuildConfigurations/ to Parse/ConditionalCompilation/.
Also move a Parse test that's really about conditional compilation
directives into the new folder.
2016-02-12 11:10:32 -08:00

10 lines
237 B
Swift

// RUN: %swift -parse %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