Files
swift-mirror/test/Interop/Cxx/objc-correctness/os-object.swift
Egor Zhdan 5a6203251c [cxx-interop] Import OS_OBJECT_DECL consistently with and without C++ interop enabled
Previously ClangImporter was not able to lookup `NSObject` when C++ interop is enabled, which caused types such as `xpc_object_t` from system module XPC to be imported differently: `any OS_xpc_object` without C++ interop vs `any NSObject & OS_xpc_object` with C++ interop enabled.

rdar://110000787
2023-07-04 21:32:17 +01:00

9 lines
191 B
Swift

// RUN: %target-swift-frontend -typecheck -verify -I %S/Inputs -cxx-interoperability-mode=swift-5.9 %s
// REQUIRES: objc_interop
import OSObject
extension my_object_t {
func dummy() {}
}