Files
swift-mirror/test/Parse/ConditionalCompilation/trailingClosureOnTargetConfig.swift
Saleem Abdulrasool 52952623db test: remove extraneous macro definitions
These tests were defining an unused macro for no clear reason.  Remove
them to simplify the tests.
2019-05-07 08:06:02 -07:00

10 lines
229 B
Swift

// RUN: %swift -typecheck %s -verify -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