Clean up GetDelegateForFunctionPointer() code and test paths (#34655)
authorAaron Robinson <arobins@microsoft.com>
Wed, 8 Apr 2020 04:50:05 +0000 (21:50 -0700)
committerGitHub <noreply@github.com>
Wed, 8 Apr 2020 04:50:05 +0000 (21:50 -0700)
commite8f65f3531a3978df061458512e9eb297ddadc30
treea6afa72482998ba261fe5c440aa71ed49d1ccce6
parent8e0147ecdfd2717362ca0a859089968bad17aefc
Clean up GetDelegateForFunctionPointer() code and test paths (#34655)

Update comments for GetDelegateForFunctionPointer() code path
Remove dead code
Update GetDelegateForFunctionPointer() tests in CoreCLR.
Removed duplicate tests that are covered in libraries test suite.
src/coreclr/src/vm/comdelegate.cpp
src/coreclr/src/vm/ilmarshalers.cpp
src/coreclr/tests/src/Interop/MarshalAPI/FunctionPointer/FunctionPointer.cs [new file with mode: 0644]
src/coreclr/tests/src/Interop/MarshalAPI/FunctionPointer/FunctionPointerNative.cpp
src/coreclr/tests/src/Interop/MarshalAPI/FunctionPointer/GetDelForFcnPtr_Negative_Catchable.cs [deleted file]
src/coreclr/tests/src/Interop/MarshalAPI/FunctionPointer/GetFcnPtrForDel_Negative_Catchable.cs [deleted file]
src/coreclr/tests/src/Interop/MarshalAPI/FunctionPointer/GetFcnPtrForDel_Negative_Security.cs [deleted file]
src/coreclr/tests/src/Interop/MarshalAPI/FunctionPointer/SingleMulticastTest.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/Marshal.cs