Files
swift-mirror/test/Interop/Cxx/modules/preferred-overload.swift
Gábor Horváth e700c6b8d4 [6.2][cxx-interop] Support _LIBCPP_PREFERRED_OVERLOAD
Explanation: Some functions are implemented both in libc and libc++.
Clang uses the enable_if attribute to resolve otherwise ambiguous
functions calls. This PR makes the name lookup aware of this attribute.
Issue: rdar://152192945
Risk: Low, only C/C++ APIs with enable_if attributes are affected.
Testing: Regression test added.
Original PR: #82019
Reviewer: @hnrklssn
2025-06-09 13:40:34 +01:00

9 lines
156 B
Swift

// RUN: %target-typecheck-verify-swift -I %S/Inputs -cxx-interoperability-mode=default
import AmbiguousA
import AmbiguousB
func g(_ x: CInt) {
f(x)
}