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>2014-08-19 19:10:33 +0400
committerMarek Safar <marek.safar@gmail.com>2014-08-20 10:20:26 +0400
commitca5e18f6a902d7a0fd70e03592652a246000adb1 (patch)
treef4d5506e4a87e7235580eecb31341ce0aedbc4db /mcs/tests/test-880.cs
parent09f73f30709f5948b3c5c5168eb0a54861148871 (diff)
[mcs] Clean-up flow analysis for boolean expressions
Diffstat (limited to 'mcs/tests/test-880.cs')
-rw-r--r--mcs/tests/test-880.cs13
1 files changed, 12 insertions, 1 deletions
diff --git a/mcs/tests/test-880.cs b/mcs/tests/test-880.cs
index 6449d564061..acb4a4d5a86 100644
--- a/mcs/tests/test-880.cs
+++ b/mcs/tests/test-880.cs
@@ -57,7 +57,18 @@ public class A
{
int f = 1;
int g;
- return f > 1 && OutCall (out g) && g > 1;
+ return f > 1 && OutCall (out g) && g > 1;
+ }
+
+ static void Test8 ()
+ {
+ bool x = true;
+
+ int a;
+ if (x ? OutCall (out a) : OutCall (out a))
+ System.Console.WriteLine (a);
+ else
+ System.Console.WriteLine (a);
}
static bool OutCall (out int arg)