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-05-28 18:23:01 +0400
committerMarek Safar <marek.safar@gmail.com>2014-05-28 18:24:37 +0400
commitfad2723818a8f6374b678402dff0805a7003802e (patch)
tree6d08bf648d026b2c0077c7174aa7bfe7ce017f27 /mcs/tests/test-893.cs
parent789e27a9bfbf992c1c1a8c5b715fe5188ec1356e (diff)
[mcs] Flow analysis of binary expressions not using logical operators. Fixes #20086
Diffstat (limited to 'mcs/tests/test-893.cs')
-rw-r--r--mcs/tests/test-893.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/mcs/tests/test-893.cs b/mcs/tests/test-893.cs
new file mode 100644
index 00000000000..97cfc0a7cca
--- /dev/null
+++ b/mcs/tests/test-893.cs
@@ -0,0 +1,15 @@
+public class A
+{
+ public static bool TryAssign (out int x)
+ {
+ x = 0;
+ return true;
+ }
+
+ public static void Main ()
+ {
+ int x, y;
+ if ((!TryAssign (out x) || x == 0) & (!TryAssign (out y) || y == 0)) {
+ }
+ }
+}