Add test coverage for UnmanagedCallersOnly with CallConvFastcall (Windows-only) - #130632
Merged
AaronRobinsonMSFT merged 9 commits intoJul 15, 2026
Merged
Conversation
…dows-only) Adds the following tests: - UnmanagedCallersOnlyTest.cs: TestUnmanagedCallersOnlyViaUnmanagedCalli_Fastcall - tests a managed callback with [UnmanagedCallersOnly(CallConvs = [typeof(CallConvFastcall)])] called via a delegate* unmanaged[Fastcall] pointer (Windows-only) - UnmanagedCallersOnlyDll.cpp: CallManagedProc_Fastcall native function (guarded by #ifdef _WIN32) - UnmanagedCallersOnlyBasicTest.cs: TestUnmanagedCallersOnlyValid_CallConvFastcall - tests a managed callback invoked from native code using the fastcall calling convention (Windows-only) Closes #110760 Co-authored-by: AaronRobinsonMSFT <30635565+AaronRobinsonMSFT@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add missing test coverage for UnmanagedCallersOnly with CallconvFastcall
Add test coverage for UnmanagedCallersOnly with CallConvFastcall (Windows-only)
Jul 13, 2026
Co-authored-by: Aaron R Robinson <arobins@microsoft.com>
AaronRobinsonMSFT
temporarily deployed
to
copilot-pat-pool
July 13, 2026 16:43 — with
GitHub Actions
Inactive
AaronRobinsonMSFT
marked this pull request as ready for review
July 13, 2026 16:43
AaronRobinsonMSFT
temporarily deployed
to
copilot-pat-pool
July 13, 2026 16:44 — with
GitHub Actions
Inactive
Member
Contributor
|
Tagging subscribers to this area: @dotnet/interop-contrib |
AaronRobinsonMSFT
temporarily deployed
to
copilot-pat-pool
July 14, 2026 13:04 — with
GitHub Actions
Inactive
…efactor callback methods
AaronRobinsonMSFT
temporarily deployed
to
copilot-pat-pool
July 14, 2026 19:55 — with
GitHub Actions
Inactive
AaronRobinsonMSFT
temporarily deployed
to
copilot-pat-pool
July 14, 2026 19:55 — with
GitHub Actions
Inactive
…anagedCallersOnly tests
AaronRobinsonMSFT
temporarily deployed
to
copilot-pat-pool
July 14, 2026 20:01 — with
GitHub Actions
Inactive
AaronRobinsonMSFT
temporarily deployed
to
copilot-pat-pool
July 14, 2026 20:02 — with
GitHub Actions
Inactive
jtschuster
approved these changes
Jul 14, 2026
AaronRobinsonMSFT
enabled auto-merge (squash)
July 14, 2026 23:00
MichalStrehovsky
approved these changes
Jul 15, 2026
Member
|
/ba-g Unrelated failures. |
AaronRobinsonMSFT
deleted the
copilot/add-test-coverage-unmanagedcallersonly
branch
July 15, 2026 20:09
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request updates the unmanaged calling convention interop tests to support and validate calling managed methods with multiple parameters using
Stdcall,Cdecl, and, on Windows,Fastcall. The changes expand the callback signatures to accept three integer parameters, update the corresponding native and managed method declarations, and add new tests for theFastcallconvention.All new tests are gated with
[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsWindows))].