[metadata] Respect unmanaged calling conventions in function signatures. (mono/mono...
authorZebediah Figura <obsequiousnewt@gmail.com>
Thu, 11 Jul 2019 18:38:03 +0000 (13:38 -0500)
committerAleksey Kliger (λgeek) <alklig@microsoft.com>
Thu, 11 Jul 2019 18:38:03 +0000 (14:38 -0400)
commit10c7fb0d3ddaecb32593c168d3308a78389cb7ef
tree7ff46fa9592c98e59debf6d1f49f76c74aa9aede
parent68a52de3995a8f35875f909b0616bc363a33838f
[metadata] Respect unmanaged calling conventions in function signatures. (mono/mono#15363)

According to ECMA-335 § II.15.3, calling conventions other than "default" and
"vararg" describe unmanaged methods. Accordingly they should be treated as
pinvokes so that that their calling conventions are respected.

Commit migrated from https://github.com/mono/mono/commit/2f1b50bfbf9db129d844dad8e45ec248f0c877e4
src/mono/mono/metadata/metadata.c
src/mono/mono/tests/Makefile.am
src/mono/mono/tests/calli_native.il [new file with mode: 0644]
src/mono/mono/tests/libtest.c