Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mcs/tests
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2017-11-27 16:03:47 +0300
committerMarek Safar <marek.safar@gmail.com>2017-11-28 01:07:27 +0300
commitdcf567ff6460a121e135ec79b93fde5ba5de755c (patch)
tree2e175ae180957b45476fc4b4a88f682c063f8fac /mcs/tests
parentc1fd42eac82815895e352105f3562018c1f4fe0b (diff)
[mcs] Populate referencecontainer member-cache correctly. Fixes #60860
Diffstat (limited to 'mcs/tests')
-rw-r--r--mcs/tests/known-issues-interp-net_4_x1
-rw-r--r--mcs/tests/test-ref-09.cs12
-rw-r--r--mcs/tests/ver-il-net_4_x.xml13
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&amp; 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">