Skip to content

Commit

Permalink
[tests] Add MarshalAs attribute for bool return value.
Browse files Browse the repository at this point in the history
This fixes a test failure with NativeAOT on x64.
  • Loading branch information
rolfbjarne committed Mar 4, 2025
1 parent 400a960 commit cc8f6d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/monotouch-test/ObjCRuntime/RegistrarTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -759,6 +759,7 @@ public void ExportedGenericsTest ()
extern static void void_objc_msgSend_out_IntPtr_bool (IntPtr receiver, IntPtr selector, out NativeHandle path, bool create);

[DllImport (LIBOBJC_DYLIB, EntryPoint = "objc_msgSend")]
[return: MarshalAs(UnmanagedType.U1)]
extern static bool bool_objc_msgSend_ref_intptr (IntPtr receiver, IntPtr selector, ref NativeHandle path);

[DllImport (LIBOBJC_DYLIB, EntryPoint = "objc_msgSend")]
Expand Down

0 comments on commit cc8f6d7

Please sign in to comment.