Skip to content

[cxx-interop] Add new tests for consuming shared foreign reference types #74813

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

Xazax-hun
Copy link
Contributor

Check semantics for functions creating FRTs, and wrapping FRTs.

@Xazax-hun Xazax-hun added the c++ interop Feature: Interoperability with C++ label Jun 28, 2024
@Xazax-hun Xazax-hun requested review from egorzhdan and removed request for egorzhdan June 28, 2024 14:45
@Xazax-hun Xazax-hun force-pushed the gaborh/consuming-tests branch from 7698cd0 to 166f1dd Compare July 1, 2024 14:00
@Xazax-hun
Copy link
Contributor Author

@swift-ci please smoke test

Check semantics for functions creating FRTs, and wrapping FRTs.
@Xazax-hun Xazax-hun force-pushed the gaborh/consuming-tests branch from 166f1dd to bfc4e50 Compare September 3, 2024 11:04
@Xazax-hun
Copy link
Contributor Author

@swift-ci please smoke test

UseCxx::genericConsumingFunc(wrapper);
// CHECK-NEXT: retainShared
// CHECK-NEXT: retainShared
// CHECK-DAG: releaseShared
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two lines are swapped on linux and windows, this is why I use CHECK-DAG.

Copy link
Contributor

@egorzhdan egorzhdan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't verified the expected test output, but thanks for adding these tests!

@Xazax-hun Xazax-hun merged commit 6ae54fe into main Sep 3, 2024
3 checks passed
@Xazax-hun Xazax-hun deleted the gaborh/consuming-tests branch September 3, 2024 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ interop Feature: Interoperability with C++
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants