Update tests to help uncover CrossGen2 scenario validation (#65477)
authorAaron Robinson <arobins@microsoft.com>
Thu, 17 Feb 2022 21:19:18 +0000 (13:19 -0800)
committerGitHub <noreply@github.com>
Thu, 17 Feb 2022 21:19:18 +0000 (13:19 -0800)
commit053a472be0143bda0891c715d7b2ce7398538127
treedf85011cec9b6ba8b1c1f8dcfebb92595b8921fc
parentea5376adf7bb963f76272b5077df45c252a5c15b
Update tests to help uncover CrossGen2 scenario validation (#65477)

* Update CrossGen2 to support ByRef fields in all scenarios

* Update tests to help uncover CrossGen2 scenario validation

* Add support in Mono for the ByReference`1 being considered a ref field
  during Explicit offset validation.
src/coreclr/tools/Common/TypeSystem/Common/ExplicitLayoutValidator.cs
src/mono/mono/metadata/class-init.c
src/tests/Loader/classloader/RefFields/InvalidCSharp.il
src/tests/Loader/classloader/RefFields/Validate.cs