diff options
author | Marek Safar <marek.safar@gmail.com> | 2017-11-27 16:03:47 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2017-11-28 01:07:27 +0300 |
commit | dcf567ff6460a121e135ec79b93fde5ba5de755c (patch) | |
tree | 2e175ae180957b45476fc4b4a88f682c063f8fac /mcs/tests | |
parent | c1fd42eac82815895e352105f3562018c1f4fe0b (diff) |
[mcs] Populate referencecontainer member-cache correctly. Fixes #60860
Diffstat (limited to 'mcs/tests')
-rw-r--r-- | mcs/tests/known-issues-interp-net_4_x | 1 | ||||
-rw-r--r-- | mcs/tests/test-ref-09.cs | 12 | ||||
-rw-r--r-- | mcs/tests/ver-il-net_4_x.xml | 13 |
3 files changed, 26 insertions, 0 deletions
diff --git a/mcs/tests/known-issues-interp-net_4_x b/mcs/tests/known-issues-interp-net_4_x index fa6980e502b..b697c5e0a41 100644 --- a/mcs/tests/known-issues-interp-net_4_x +++ b/mcs/tests/known-issues-interp-net_4_x @@ -19,3 +19,4 @@ test-704.cs test-811.cs test-async-17.cs test-ref-08.cs IGNORE +test-ref-09.cs IGNORE diff --git a/mcs/tests/test-ref-09.cs b/mcs/tests/test-ref-09.cs new file mode 100644 index 00000000000..5d0e89e5c1a --- /dev/null +++ b/mcs/tests/test-ref-09.cs @@ -0,0 +1,12 @@ +struct rigidbody { public float x; } + +class Program +{ + static rigidbody a; + static ref rigidbody property_returning_struct_by_ref => ref a; + + static void Main() + { + System.Console.WriteLine (property_returning_struct_by_ref.x); + } +}
\ No newline at end of file diff --git a/mcs/tests/ver-il-net_4_x.xml b/mcs/tests/ver-il-net_4_x.xml index 93672cf9e9f..c69461ef76b 100644 --- a/mcs/tests/ver-il-net_4_x.xml +++ b/mcs/tests/ver-il-net_4_x.xml @@ -72967,6 +72967,19 @@ </method> </type> </test> + <test name="test-ref-09.cs"> + <type name="Program"> + <method name="rigidbody& get_property_returning_struct_by_ref()" attrs="2193"> + <size>13</size> + </method> + <method name="Void Main()" attrs="145"> + <size>17</size> + </method> + <method name="Void .ctor()" attrs="6278"> + <size>7</size> + </method> + </type> + </test> <test name="test-static-using-01.cs"> <type name="A.B.X"> <method name="Int32 Test()" attrs="150"> |