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
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2012-11-14 15:26:45 +0400
committerMarek Safar <marek.safar@gmail.com>2012-11-14 15:26:45 +0400
commit011417179a637c2eb668ff194e7669bb9ff1eeb2 (patch)
tree993de61ba32e355d0dd357d52c16e111424c0faf /mcs/tests/test-849.cs
parentd483378be2d33e332f89454b5d6ef8bacbeec22c (diff)
More fixed for conditional expression promotions. Fixes #8385
Diffstat (limited to 'mcs/tests/test-849.cs')
-rw-r--r--mcs/tests/test-849.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/mcs/tests/test-849.cs b/mcs/tests/test-849.cs
index 58be5f68f41..83310f20dcd 100644
--- a/mcs/tests/test-849.cs
+++ b/mcs/tests/test-849.cs
@@ -2,6 +2,11 @@ using System;
class ConditionalPromotions
{
+ public static int Test (bool condition, short value)
+ {
+ return condition ? -1 : value;
+ }
+
public static int Main(string[] args)
{
var r1 = args.Length > 0 ? 1 : (short)1;