mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
8 lines
388 B
Swift
8 lines
388 B
Swift
// RUN: %target-typecheck-verify-swift -swift-version 4
|
|
|
|
/// Reject compound names.
|
|
#if BAR(_:) // expected-error {{invalid conditional compilation expression}}
|
|
#elseif os(x:)(macOS) // expected-error {{unexpected platform condition (expected 'os', 'arch', or 'swift')}}
|
|
#elseif os(Linux(foo:bar:)) // expected-error {{unexpected platform condition argument: expected identifier}}
|
|
#endif
|