mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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
8 lines
162 B
Swift
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
|