[Mono] Fix function pointer check (#80855)
authorFan Yang <52458914+fanyang-mono@users.noreply.github.com>
Mon, 23 Jan 2023 22:14:06 +0000 (17:14 -0500)
committerGitHub <noreply@github.com>
Mon, 23 Jan 2023 22:14:06 +0000 (17:14 -0500)
commitd6c2b4385305c8fda2d8e4290228f9b83005e192
treeac1b2c983b2d98704c1603f6ce4b35eb65796aa6
parent0ca364767715fee7bc9d0273eec4f30a3c6cc8f0
[Mono] Fix function pointer check (#80855)

* Fix function pointer check

* Make is_monomorphic_array return false when the element is function pointer

* Move test to a better location
src/mono/mono/metadata/class.c
src/mono/mono/metadata/marshal.c
src/tests/Loader/classloader/Casting/Functionpointer.cs [new file with mode: 0644]
src/tests/Loader/classloader/Casting/Functionpointer.csproj [new file with mode: 0644]