Files
swift-mirror/test/Interop/Cxx/objc-correctness/posix.swift
Egor Zhdan 69727bb3de [cxx-interop] Add test for INADDR_ANY usage
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
2023-08-22 16:51:02 +01:00

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)