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>2018-07-16 23:38:26 +0300
committerMarek Safar <marek.safar@gmail.com>2018-07-17 11:45:36 +0300
commitd0fa02e1c0935f697b66580284e40851bda7a9a4 (patch)
treebfba15eeb5b0e0e71251d63043b3aafd35b16685 /mcs/tests
parentd928987453b83520dfb79b681dab0d45e41f348a (diff)
[mcs] Add parsing for readonly argument modifier
Diffstat (limited to 'mcs/tests')
-rw-r--r--mcs/tests/test-961.cs6
-rw-r--r--mcs/tests/ver-il-net_4_x.xml7
2 files changed, 12 insertions, 1 deletions
diff --git a/mcs/tests/test-961.cs b/mcs/tests/test-961.cs
index 4456e19b3f4..efe19673875 100644
--- a/mcs/tests/test-961.cs
+++ b/mcs/tests/test-961.cs
@@ -5,6 +5,12 @@ using System;
public static class B {
public static void Main ()
{
+ int lo = 1;
+ Bar (in lo);
+ }
+
+ public static void Bar (in int arg)
+ {
}
static void Foo (this in int src)
diff --git a/mcs/tests/ver-il-net_4_x.xml b/mcs/tests/ver-il-net_4_x.xml
index 47ad33497ca..e8aa6bb7013 100644
--- a/mcs/tests/ver-il-net_4_x.xml
+++ b/mcs/tests/ver-il-net_4_x.xml
@@ -52947,7 +52947,7 @@
<test name="test-961.cs">
<type name="B">
<method name="Void Main()" attrs="150">
- <size>2</size>
+ <size>10</size>
</method>
<method name="Void Foo(Int32)" attrs="145">
<size>32</size>
@@ -52984,6 +52984,11 @@
<size>8</size>
</method>
</type>
+ <type name="B">
+ <method name="Void Bar(Int32)" attrs="150">
+ <size>2</size>
+ </method>
+ </type>
</test>
<test name="test-97.cs">
<type name="X">