* test-587.cs: test for bug #328136.
authorGert Driesen <drieseng@users.sourceforge.net>
Wed, 26 Sep 2007 17:53:51 +0000 (17:53 -0000)
committerGert Driesen <drieseng@users.sourceforge.net>
Wed, 26 Sep 2007 17:53:51 +0000 (17:53 -0000)
* test-588.cs: test for bug #328490.
* known-issues-gmcs: added test-587.cs and test-588.cs.
* known-issues-mcs: added test-587.cs and test-588.cs.

svn path=/trunk/mcs/; revision=86423

mcs/tests/ChangeLog
mcs/tests/known-issues-gmcs
mcs/tests/known-issues-mcs
mcs/tests/test-587.cs [new file with mode: 0644]
mcs/tests/test-588.cs [new file with mode: 0644]

index c704b26403488cbe8bd46f75630a747fd2b438e4..2273b47e992eca8c6295833eb3ec9264ab218a4f 100644 (file)
@@ -1,3 +1,10 @@
+2007-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * test-587.cs: test for bug #328136.
+       * test-588.cs: test for bug #328490.
+       * known-issues-gmcs: added test-587.cs and test-588.cs.
+       * known-issues-mcs: added test-587.cs and test-588.cs.
+
 2007-09-18  Gert Driesen  <drieseng@users.sourceforge.net>
 
        * test-586.cs: test for bug #325841.
index bed1a444ca275e0d81b4e9f2842df7df6b46e0e3..f1a6480f88653376bcd7dd18eb102e07027e4135 100644 (file)
@@ -10,6 +10,8 @@ test-xml-027.cs
 test-539.cs IGNORE     # In 2.0 profile, RuntimeCompatilityAttribute is added by default with WrapNonExceptionThrows set to true and conditional compilation symbols are not provided yet.
 test-562.cs
 test-586.cs
+test-587.cs
+test-588.cs
 
 gtest-230.cs
 
index fc5ee408acfa6237aa94f1473c711f0b1c8ca26a..17b3fe3f11ed058d369a5d2088fba9a4abac11a9 100644 (file)
@@ -10,3 +10,5 @@ test-67.cs IGNORE     # Windows-only test
 test-xml-027.cs
 test-562.cs
 test-586.cs
+test-587.cs
+test-588.cs
diff --git a/mcs/tests/test-587.cs b/mcs/tests/test-587.cs
new file mode 100644 (file)
index 0000000..39f01b6
--- /dev/null
@@ -0,0 +1,19 @@
+// Compiler options: -nowarn:0162
+
+class Program
+{
+       static int Main ()
+       {
+               int ctc_f = 0;
+
+               if ((++ctc_f == 0 && false)) {
+                       return 1;
+               } else {
+                       if (ctc_f != 1) {
+                               return 2;
+                       }
+                       return 0;
+               }
+       }
+}
+
diff --git a/mcs/tests/test-588.cs b/mcs/tests/test-588.cs
new file mode 100644 (file)
index 0000000..7c7bf45
--- /dev/null
@@ -0,0 +1,38 @@
+using System;
+using TestNamespace;
+
+namespace TestNamespace
+{
+       public class TestClass
+       {
+               public static void HelloWorld ()
+               {
+               }
+       }
+}
+
+class SuperClass
+{
+       TestClass tc = null;
+
+       TestClass TestClass
+       {
+               get { return tc; }
+       }
+}
+
+class SubClass : SuperClass
+{
+       public SubClass ()
+       {
+               TestClass.HelloWorld ();
+       }
+}
+
+class App
+{
+       public static void Main ()
+       {
+               SubClass sc = new SubClass ();
+       }
+}