diff options
author | Filip Navara <navara@emclient.com> | 2019-06-19 09:51:44 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2019-06-19 09:51:43 +0300 |
commit | c1068f9db5d9d5891e906447d4ed3b262182a388 (patch) | |
tree | ec07a6c53c00c8b4c0a048cc409edf2ddab51aad /mcs/tests/ver-il-net_4_x.xml | |
parent | 611ba9a0180ed40c161245c7e82e00063ef58d08 (diff) |
[netcore] Update the checks for ByRef return type in reflection invocation (#14967)
* Update the checks for ByRef return type in reflection invocation to also check for IsByRefLike types. This was missed as part of #13901 and noted in the description.
Fixes #14959, #14960, #14961, #14963
* Modify the reflection checks for IsByRef/IsByRefLike to check for same conditions as CoreCLR
* Handle reflection invocation with ref void return type
* Update test-ref-07 to have Main method that is valid to invoke through reflection (as the test runner does)
* Update expected IL
Diffstat (limited to 'mcs/tests/ver-il-net_4_x.xml')
-rw-r--r-- | mcs/tests/ver-il-net_4_x.xml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mcs/tests/ver-il-net_4_x.xml b/mcs/tests/ver-il-net_4_x.xml index 4ad26da95f7..60cfdfef724 100644 --- a/mcs/tests/ver-il-net_4_x.xml +++ b/mcs/tests/ver-il-net_4_x.xml @@ -73853,8 +73853,13 @@ </type> </test> <test name="test-ref-07.cs"> - <type name="Test"> + <type name="TestMain"> <method name="Void Main()" attrs="150"> + <size>7</size> + </method> + </type> + <type name="Test"> + <method name="Void MainMethod()" attrs="150"> <size>18</size> </method> <method name="Test Method()" attrs="129"> |