mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
At some point several months ago the `INADDR_ANY` macro from `Darwin.POSIX` module was not imported into Swift correctly. The issue seems to be resolved now. This change adds a test to make sure we don't regress again. rdar://107429566
7 lines
184 B
Swift
7 lines
184 B
Swift
// RUN: %target-swift-frontend -typecheck -verify -I %S/Inputs -cxx-interoperability-mode=swift-5.9 %s
|
|
// REQUIRES: objc_interop
|
|
|
|
import MockPOSIX
|
|
|
|
let _ = in_addr(s_addr: INADDR_ANY)
|