2005-03-01 Marek Safar <marek.safar@seznam.cz>
authorMarek Safar <marek.safar@gmail.com>
Tue, 1 Mar 2005 08:45:38 +0000 (08:45 -0000)
committerMarek Safar <marek.safar@gmail.com>
Tue, 1 Mar 2005 08:45:38 +0000 (08:45 -0000)
* test-352.cs: New test.

* test-353.cs, test-353-2: Bug #73117

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

mcs/tests/ChangeLog
mcs/tests/Makefile
mcs/tests/test-352.cs [new file with mode: 0644]
mcs/tests/test-353-2.cs [new file with mode: 0644]
mcs/tests/test-353.cs [new file with mode: 0644]

index afac8b4db005a1716397c98787c2c21ba24edc5c..597f3c92042e2e55d2f53484d79154e1393a66c6 100644 (file)
@@ -1,3 +1,9 @@
+2005-03-01  Marek Safar <marek.safar@seznam.cz>
+
+       * test-352.cs: New test.
+       
+       * test-353.cs, test-353-2: Bug #73117
+
 2005-02-22  Raja R Harinath  <rharinath@novell.com>
 
        * mtest-6-exe.cs, mtest-6-dll.cs: New test based on #71134.
index 54b41c98e1645d1f028a13d5cc5536ab08a64405..ee3ab95c670d47d73000df3d3a51a3fc192bce2d 100644 (file)
@@ -29,7 +29,7 @@ USE_MCS_FLAGS :=
 #
 NEW_TEST_SOURCES_common = xml-033 xml-034 xml-035 test-329 2test-16 test-330 a-parameter5 test-331 test-332 \
                          test-333 test-311 test-335 test-336 test-337 test-287 test-338 test-339 test-341 test-334 test-342 \
-                         test-344 test-345 test-346 test-347 test-348 test-349 test-351
+                         test-344 test-345 test-346 test-347 test-348 test-349 test-351 test-352 test-353
 
 #
 # Please do _not_ add any tests here - all new tests should go into NEW_TEST_SOURCES_common
diff --git a/mcs/tests/test-352.cs b/mcs/tests/test-352.cs
new file mode 100644 (file)
index 0000000..d097e83
--- /dev/null
@@ -0,0 +1,14 @@
+using System.Runtime.InteropServices;
+
+public struct CONNECTDATA
+{
+       [MarshalAs (10)]
+       public object pUnk;
+       [MarshalAs (UnmanagedType.BStr)]
+       public int dwCookie;
+}
+
+public class C
+{
+    public static void Main () {}
+}
diff --git a/mcs/tests/test-353-2.cs b/mcs/tests/test-353-2.cs
new file mode 100644 (file)
index 0000000..6bc4004
--- /dev/null
@@ -0,0 +1,8 @@
+using System;
+public class Three {
+        public static void Main ()
+        {
+                One o = new One ();
+        }
+}
diff --git a/mcs/tests/test-353.cs b/mcs/tests/test-353.cs
new file mode 100644 (file)
index 0000000..adc9c93
--- /dev/null
@@ -0,0 +1,12 @@
+// Compiler options: ../test-353-2.cs
+
+using System;
+[Obsolete]
+public class One { }
+#pragma warning disable 612
+public class Two {
+        private One one;
+}