diff options
author | Aleksey Kliger (λgeek) <alklig@microsoft.com> | 2021-12-03 22:43:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-03 22:43:21 +0300 |
commit | eff6546c2e38f3eec9e2770819491165a570c1a4 (patch) | |
tree | 3170ae79f179b58e77d7a7da8b7d488d37076a4b /src/tests/Loader | |
parent | 915ee6db9cb871bb2ef32698015bca0f2c895ce8 (diff) |
Update overlapped field test to conflict on 32-bit arches (#62308)
* Update overlapped field test to conflict on 32-bit arches
Fixes https://github.com/dotnet/runtime/issues/62303
* [class-init] Setup fields of nested structs in layout check
On AOT the field's class may not have been fully inited yet.
Related to https://github.com/dotnet/runtime/issues/62311
Diffstat (limited to 'src/tests/Loader')
-rw-r--r-- | src/tests/Loader/classloader/explicitlayout/NestedStructs/case04.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/Loader/classloader/explicitlayout/NestedStructs/case04.cs b/src/tests/Loader/classloader/explicitlayout/NestedStructs/case04.cs index 7e2cfc44758..c89bea2ea3b 100644 --- a/src/tests/Loader/classloader/explicitlayout/NestedStructs/case04.cs +++ b/src/tests/Loader/classloader/explicitlayout/NestedStructs/case04.cs @@ -27,7 +27,7 @@ public struct SecondLevel [StructLayout(LayoutKind.Explicit)] public struct ThirdLevel { - [FieldOffset(6)] + [FieldOffset(2)] public short ConflictingValueTypeField; } |