2004-04-27 Martin Baulig <martin@ximian.com>
authorMartin Baulig <martin@novell.com>
Wed, 28 Apr 2004 16:31:50 +0000 (16:31 -0000)
committerMartin Baulig <martin@novell.com>
Wed, 28 Apr 2004 16:31:50 +0000 (16:31 -0000)
* test-154.cs: Added test case for #52625.

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

mcs/tests/Makefile
mcs/tests/test-243.cs [new file with mode: 0644]

index d40bb8829526437ed484ad6173d320d4153b8ae0..b6bf8b8be2fbdd62e9b553762a4400900db34e01 100644 (file)
@@ -40,7 +40,7 @@ TEST_SOURCES = \
        test-211 test-212 test-213 test-214 test-215 test-216 test-217 test-218 test-219 test-220 \
        test-221 test-222 test-223 test-224 test-225 test-226 test-227          test-229 test-230 \
        test-231 test-232 test-233 test-234 test-235 test-236 test-237 test-238 test-239 \
-       test-241 test-242 \
+       test-241 test-242 test-243 \
        cls-test-0 cls-test-1 cls-test-2 cls-test-3 cls-test-5 cls-test-6 cls-test-7 cls-test-10  \
        cls-test-11 cls-test-14 cls-test-15 cls-test-16
 
diff --git a/mcs/tests/test-243.cs b/mcs/tests/test-243.cs
new file mode 100644 (file)
index 0000000..b8c9e9a
--- /dev/null
@@ -0,0 +1,21 @@
+// Bug #57014.
+using System;
+
+public class X {
+       public const string Address = null;
+       
+       public static bool Resolve (string addr)
+       {
+               return true;
+       }
+
+       static string Test ()
+       {
+               return Address;
+       }
+
+       static void Main ()
+       {
+               Resolve (Address);
+       }
+}