New test.
authorMartin Baulig <martin@novell.com>
Tue, 17 May 2005 09:38:47 +0000 (09:38 -0000)
committerMartin Baulig <martin@novell.com>
Tue, 17 May 2005 09:38:47 +0000 (09:38 -0000)
svn path=/trunk/mcs/; revision=44613

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

index ecb9e2b2f603f6e224693ee2eefb08447b863fc5..41d7ab8428319cdd1904f81d6c75e97014ebe920 100644 (file)
@@ -81,7 +81,7 @@ TEST_SOURCES_common = \
        test-351 test-352 test-353 test-354 test-355 test-356 test-357 test-358 test-359          \
        test-361 test-362 test-363 test-364 test-365 test-366 test-367 test-368          test-370 \
        test-371          test-373 test-374                                     test-379          \
-       test-381                                                                                  \
+       test-381 test-382 test-383                                                                \
        cls-test-0 cls-test-1 cls-test-2 cls-test-3 cls-test-5 cls-test-7 cls-test-10  \
        cls-test-11 cls-test-12 cls-test-14 cls-test-15 cls-test-16 \
        2test-1  2test-2  2test-3  2test-4  2test-5  2test-6  2test-7  2test-8  2test-9  2test-10 \
diff --git a/mcs/tests/test-383.cs b/mcs/tests/test-383.cs
new file mode 100644 (file)
index 0000000..49fb0ca
--- /dev/null
@@ -0,0 +1,25 @@
+using System;
+
+public class X
+{
+       public readonly int Data;
+
+        public X testme (out int x)
+       {
+                x = 1;
+               return this;
+        }
+
+        public X ()
+       {
+                int x, y;
+
+                y = this.testme (out x).Data;
+                Console.WriteLine("X is {0}", x);
+        }
+
+        public static void Main ()
+       {
+                X x = new X ();
+        }
+}