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-03-21 20:32:00 +0300
committerLudovic Henry <luhenry@microsoft.com>2018-03-21 20:32:00 +0300
commitdd09fa9982df5b79e4feaf3de4009a347823bd6f (patch)
tree8a8778e31ad9fdbe71859fc254e039781838c38f /mcs/tests
parent3fa3592376c5c07ac163a2c7bb95b94c2931046b (diff)
[mcs] Adds cloning for TupleLiteralElement expressions (#7746)
Fixes #7729
Diffstat (limited to 'mcs/tests')
-rw-r--r--mcs/tests/test-tuple-10.cs9
-rw-r--r--mcs/tests/ver-il-net_4_x.xml13
2 files changed, 22 insertions, 0 deletions
diff --git a/mcs/tests/test-tuple-10.cs b/mcs/tests/test-tuple-10.cs
new file mode 100644
index 00000000000..82f4e01ec1f
--- /dev/null
+++ b/mcs/tests/test-tuple-10.cs
@@ -0,0 +1,9 @@
+using System.Linq;
+
+class Program {
+ public static int Main ()
+ {
+ var l = (from f in (typeof (Program)).GetFields() select (name: f.Name, offset: 0)).ToList();
+ return 0;
+ }
+} \ 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 87571cea7bb..64279ec3a9c 100644
--- a/mcs/tests/ver-il-net_4_x.xml
+++ b/mcs/tests/ver-il-net_4_x.xml
@@ -73792,6 +73792,19 @@
</method>
</type>
</test>
+ <test name="test-tuple-10.cs">
+ <type name="Program">
+ <method name="Int32 Main()" attrs="150">
+ <size>65</size>
+ </method>
+ <method name="System.ValueTuple`2[System.String,System.Int32] &lt;Main&gt;m__0(System.Reflection.FieldInfo)" attrs="145">
+ <size>21</size>
+ </method>
+ <method name="Void .ctor()" attrs="6278">
+ <size>7</size>
+ </method>
+ </type>
+ </test>
<test name="test-var-01.cs">
<type name="Test">
<method name="Int32 Main()" attrs="150">