diff options
Diffstat (limited to 'tests/src/JIT/Regression/CLR-x86-JIT/V1-M13-RTM/b99235/b99235.cs')
-rw-r--r-- | tests/src/JIT/Regression/CLR-x86-JIT/V1-M13-RTM/b99235/b99235.cs | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1-M13-RTM/b99235/b99235.cs b/tests/src/JIT/Regression/CLR-x86-JIT/V1-M13-RTM/b99235/b99235.cs new file mode 100644 index 0000000000..e35c7a09a3 --- /dev/null +++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1-M13-RTM/b99235/b99235.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; + +public struct A +{ + public int m_aval; +}; +public struct B +{ + public int m_bval; +}; + +public struct AA +{ + public A m_a; + public B m_b; + public AA(int a, int b) + { + m_a.m_aval = a; + m_b.m_bval = b; + } +} + +internal class TestApp +{ + private static unsafe int test_26(uint ub) + { + return 0; + } + private static unsafe int Main() + { + AA loc_x = new AA(0, 100); + test_26((uint)&loc_x.m_b); + return 100; + } +} |