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-04-08 23:54:05 +0300
committerMarek Safar <marek.safar@gmail.com>2018-04-09 20:37:23 +0300
commit07ae1445b87698b33ce73005f761b4b59e90602a (patch)
treeb12b05f17436de5ca9aa0009c270a8c30804bedf /mcs/tests
parent2f3de804102869e0dc2f5053a80569f2b3f342a9 (diff)
[mcs] Adds private protected modifier to the parser only
Diffstat (limited to 'mcs/tests')
-rw-r--r--mcs/tests/test-960.cs20
-rw-r--r--mcs/tests/ver-il-net_4_x.xml28
2 files changed, 48 insertions, 0 deletions
diff --git a/mcs/tests/test-960.cs b/mcs/tests/test-960.cs
new file mode 100644
index 00000000000..ac2a1ca7435
--- /dev/null
+++ b/mcs/tests/test-960.cs
@@ -0,0 +1,20 @@
+// Compiler options: -langversion:7.2
+
+public class B
+{
+ private protected enum E
+ {
+ }
+
+ public int Index { get; protected private set; }
+
+ internal string S1 { get; private protected set; }
+
+ protected string S2 { get; private protected set; }
+
+ private protected int field;
+
+ public static void Main ()
+ {
+ }
+} \ 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 2572c541819..09ba756d68c 100644
--- a/mcs/tests/ver-il-net_4_x.xml
+++ b/mcs/tests/ver-il-net_4_x.xml
@@ -52916,6 +52916,34 @@
</method>
</type>
</test>
+ <test name="test-960.cs">
+ <type name="B">
+ <method name="Int32 get_Index()" attrs="2182">
+ <size>14</size>
+ </method>
+ <method name="Void set_Index(Int32)" attrs="2178">
+ <size>8</size>
+ </method>
+ <method name="System.String get_S1()" attrs="2179">
+ <size>14</size>
+ </method>
+ <method name="Void set_S1(System.String)" attrs="2178">
+ <size>8</size>
+ </method>
+ <method name="System.String get_S2()" attrs="2180">
+ <size>14</size>
+ </method>
+ <method name="Void set_S2(System.String)" attrs="2178">
+ <size>8</size>
+ </method>
+ <method name="Void Main()" attrs="150">
+ <size>2</size>
+ </method>
+ <method name="Void .ctor()" attrs="6278">
+ <size>7</size>
+ </method>
+ </type>
+ </test>
<test name="test-97.cs">
<type name="X">
<method name="Int32 Main()" attrs="150">