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-06-18 13:30:44 +0300
committerMarek Safar <marek.safar@gmail.com>2018-06-18 20:31:53 +0300
commit55b7051f5269a5bfce9ea2635a869713bc40c229 (patch)
treec13b5d8f9df3f7efe7d0e1066a812b08f770284f /mcs/tests
parentbf3c71ef3f9e160951d8778e16cabe547e4360d1 (diff)
[mcs] Extend emit preparation to binary expressions. Fixes #9155
Diffstat (limited to 'mcs/tests')
-rw-r--r--mcs/tests/test-decl-expr-05.cs5
-rw-r--r--mcs/tests/ver-il-net_4_x.xml2
2 files changed, 6 insertions, 1 deletions
diff --git a/mcs/tests/test-decl-expr-05.cs b/mcs/tests/test-decl-expr-05.cs
index 730fd4278ca..907cde0b8d7 100644
--- a/mcs/tests/test-decl-expr-05.cs
+++ b/mcs/tests/test-decl-expr-05.cs
@@ -6,6 +6,11 @@ class X
{
arg = s.ToString ();
}
+
+ while (true && Call (out string s2))
+ {
+ arg = s2.ToString ();
+ }
}
static bool Call (out string s)
diff --git a/mcs/tests/ver-il-net_4_x.xml b/mcs/tests/ver-il-net_4_x.xml
index 8917d57c3dd..8219768a058 100644
--- a/mcs/tests/ver-il-net_4_x.xml
+++ b/mcs/tests/ver-il-net_4_x.xml
@@ -68778,7 +68778,7 @@
<test name="test-decl-expr-05.cs">
<type name="X">
<method name="Void Test(System.String)" attrs="129">
- <size>29</size>
+ <size>62</size>
</method>
<method name="Boolean Call(System.String ByRef)" attrs="145">
<size>17</size>