Don't consider types with empty base classes blittable. They have a different managed...
authorJeremy Koritzinsky <jekoritz@microsoft.com>
Thu, 7 Jan 2021 02:39:01 +0000 (18:39 -0800)
committerGitHub <noreply@github.com>
Thu, 7 Jan 2021 02:39:01 +0000 (18:39 -0800)
commit15be6302e64b2a5df7d169bff7a2e876e1e4d400
tree4b0ea3fbcc8e62744c47b8357db31d2a242995d1
parent92870e5e4d36a7253abc8ab63ad3afb7002f6bdb
Don't consider types with empty base classes blittable. They have a different managed and native size. (#46653)

* Don't consider types with empty base classes blittable. They have a different managed and native size.

* Add test.

* Update src/coreclr/vm/classlayoutinfo.cpp
src/coreclr/vm/classlayoutinfo.cpp
src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/SizeOfTests.cs