Files
swift-mirror/test/Interop/Cxx/objc-correctness/darwin-macros.swift
Egor Zhdan 3c82042633 [cxx-interop] Import complex macros consistently in C++ language mode
This is similar to ced4cb06.

Clang stores macro information for each identifier inside of `IdentifierInfo`, which can sometimes get outdated. Clang solves this by updating the identifier info if necessary in `getLeafModuleMacros`. Let's do the same in Swift.

This makes sure that macros that reference other macros are correctly imported with C++ interop enabled.

rdar://145584369
rdar://110071334
2025-09-12 17:43:42 +01:00

8 lines
162 B
Swift

// RUN: %target-swift-frontend -cxx-interoperability-mode=default -typecheck -verify -I %S/Inputs %s
// REQUIRES: OS=macosx
import Darwin
let _ = COPYFILE_ALL