summaryrefslogtreecommitdiff
path: root/mcs/tests/test-878.cs
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/tests/test-878.cs')
-rw-r--r--mcs/tests/test-878.cs34
1 files changed, 34 insertions, 0 deletions
diff --git a/mcs/tests/test-878.cs b/mcs/tests/test-878.cs
new file mode 100644
index 0000000000..659b77a72c
--- /dev/null
+++ b/mcs/tests/test-878.cs
@@ -0,0 +1,34 @@
+using System;
+
+public class Tests
+{
+ public static int Main ()
+ {
+ return 0;
+ }
+
+ void Test1 ()
+ {
+ int a;
+ if (true) {
+ a = 0;
+ } else {
+ a = 1;
+ }
+
+ Console.WriteLine (a);
+ }
+
+ void Test2 ()
+ {
+ int a;
+ if (false) {
+ a = 0;
+ } else {
+ a = 1;
+ }
+
+ Console.WriteLine (a);
+ }
+}
+