Commit Graph

2 Commits

Author SHA1 Message Date
Egor Zhdan
80cd6b0795 [cxx-interop] Remove redundant [extern_c] in tests
`[extern_c]` module attribute has no effect in these tests.
2024-10-04 16:50:21 +01:00
Puyan Lotfi
bb432e80b2 [cxx-interop] Test for apinotes fix in llvm-project.
This is the test that goes with https://github.com/apple/llvm-project/pull/4074

In the PR to apple/llvm-project we were bailing on DeclContexts that
were not isFileContext == true. This is problematic because with
C++-Interop enabled we can end up with a DeclContext that is an extern
"C". This test makes sure that the APINote is applied and that the code
from the 4074 PR no longer bails out.
2022-03-16 14:35:46 -04:00