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-28 11:34:52 +0300
committerMarek Safar <marek.safar@gmail.com>2018-03-28 18:25:37 +0300
commit8c86a805ff7fba1f012a59fdae3eabbe8ef7129a (patch)
tree4436131b463fa913bfd087bf2fe6c364769d3579 /mcs/tests
parentb42086d450465dd7d5dc3c16a62125714f7cf48b (diff)
[mcs] Updates common array bounds unification to use universal type comparer
Diffstat (limited to 'mcs/tests')
-rw-r--r--mcs/tests/dtest-066.cs13
-rw-r--r--mcs/tests/test-tuple-02.cs5
-rw-r--r--mcs/tests/ver-il-net_4_x.xml33
3 files changed, 48 insertions, 3 deletions
diff --git a/mcs/tests/dtest-066.cs b/mcs/tests/dtest-066.cs
new file mode 100644
index 00000000000..893fb40dffa
--- /dev/null
+++ b/mcs/tests/dtest-066.cs
@@ -0,0 +1,13 @@
+class C
+{
+ static void Main()
+ {
+ object o = 1;
+ dynamic d = 1;
+
+ var a = new[] {
+ new { X = o },
+ new { X = d }
+ };
+ }
+}
diff --git a/mcs/tests/test-tuple-02.cs b/mcs/tests/test-tuple-02.cs
index c0492759452..ab722642aeb 100644
--- a/mcs/tests/test-tuple-02.cs
+++ b/mcs/tests/test-tuple-02.cs
@@ -26,6 +26,11 @@ class TupleConversions
(string v1, object v2) b = ("a", "b");
(int v1, long v2)? x = null;
+
+ var array = new [] {
+ (name: "A", offset: 0),
+ (name: "B", size: 4)
+ };
}
static void Foo<T> (T arg)
diff --git a/mcs/tests/ver-il-net_4_x.xml b/mcs/tests/ver-il-net_4_x.xml
index 64279ec3a9c..181a87a2e5f 100644
--- a/mcs/tests/ver-il-net_4_x.xml
+++ b/mcs/tests/ver-il-net_4_x.xml
@@ -3168,6 +3168,33 @@
</method>
</type>
</test>
+ <test name="dtest-066.cs">
+ <type name="C">
+ <method name="Void Main()" attrs="145">
+ <size>41</size>
+ </method>
+ <method name="Void .ctor()" attrs="6278">
+ <size>7</size>
+ </method>
+ </type>
+ <type name="&lt;&gt;__AnonType0`1[&lt;X&gt;__T]">
+ <method name="&lt;X&gt;__T get_X()" attrs="2182">
+ <size>7</size>
+ </method>
+ <method name="Boolean Equals(System.Object)" attrs="198">
+ <size>39</size>
+ </method>
+ <method name="Int32 GetHashCode()" attrs="198">
+ <size>63</size>
+ </method>
+ <method name="System.String ToString()" attrs="198">
+ <size>67</size>
+ </method>
+ <method name="Void .ctor(&lt;X&gt;__T)" attrs="6278">
+ <size>14</size>
+ </method>
+ </type>
+ </test>
<test name="dtest-anontype-01.cs">
<type name="C">
<method name="Void Main()" attrs="150">
@@ -51483,10 +51510,10 @@
<test name="test-88.cs">
<type name="X">
<method name="Void f(System.String)" attrs="145">
- <size>20</size>
+ <size>12</size>
</method>
<method name="Int32 Main()" attrs="150">
- <size>70</size>
+ <size>62</size>
</method>
<method name="Void .ctor()" attrs="6278">
<size>7</size>
@@ -73600,7 +73627,7 @@
<test name="test-tuple-02.cs">
<type name="TupleConversions">
<method name="Void Main()" attrs="150">
- <size>314</size>
+ <size>368</size>
</method>
<method name="Void Foo[T](T)" attrs="145">
<size>2</size>