Author: marek
Date: 2006-12-20 07:06:17 -0500 (Wed, 20 Dec 2006)
New Revision: 69807

Added:
   trunk/mcs/tests/test-548.cs
Log:
New test based on #80288

Added: trunk/mcs/tests/test-548.cs
===================================================================
--- trunk/mcs/tests/test-548.cs 2006-12-20 12:04:21 UTC (rev 69806)
+++ trunk/mcs/tests/test-548.cs 2006-12-20 12:06:17 UTC (rev 69807)
@@ -0,0 +1,37 @@
+using System;
+
+namespace Bugs
+{
+    class Bug0
+    {
+        struct MyBoolean
+        {
+            private bool value;
+            public MyBoolean(bool value)
+            {
+                this.value = value;
+            }
+            public static implicit operator MyBoolean(bool value)
+            {
+                return new MyBoolean(value);
+            }
+            public static implicit operator bool(MyBoolean b)
+            {
+                return b.value;
+            }
+        }
+
+        public static int Main()
+        {
+            MyBoolean b = true;
+            if (true && b)
+            {
+                return 0;
+            }
+            else
+            {
+                return 100;
+            }
+        }
+    }
+}
\ No newline at end of file


Property changes on: trunk/mcs/tests/test-548.cs
___________________________________________________________________
Name: svn:eol-style
   + native

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to