New tests
authorMarek Safar <marek.safar@gmail.com>
Wed, 29 Dec 2010 09:14:15 +0000 (09:14 +0000)
committerMarek Safar <marek.safar@gmail.com>
Wed, 29 Dec 2010 10:00:07 +0000 (10:00 +0000)
12 files changed:
mcs/errors/CS0012-10-lib.il [new file with mode: 0644]
mcs/errors/CS0012-5-lib.il [new file with mode: 0644]
mcs/errors/CS0012-6-lib.il [new file with mode: 0644]
mcs/errors/CS0012-9-lib.il [new file with mode: 0644]
mcs/errors/Makefile
mcs/errors/cs0012-10.cs [new file with mode: 0644]
mcs/errors/cs0012-5.cs [new file with mode: 0644]
mcs/errors/cs0012-6.cs [new file with mode: 0644]
mcs/errors/cs0012-7.cs [new file with mode: 0644]
mcs/errors/cs0012-8.cs [new file with mode: 0644]
mcs/errors/cs0012-9.cs [new file with mode: 0644]
mcs/errors/cs0619-54.cs [new file with mode: 0644]

diff --git a/mcs/errors/CS0012-10-lib.il b/mcs/errors/CS0012-10-lib.il
new file mode 100644 (file)
index 0000000..2887f44
--- /dev/null
@@ -0,0 +1,48 @@
+.assembly extern mscorlib
+{
+}
+
+.assembly extern 'CS0012-lib-missing'
+{
+}
+
+.assembly 'CS0012-10-lib'
+{
+  .hash algorithm 0x00008004
+  .ver 0:0:0:0
+}
+
+.module 'CS0012-10-lib.dll'
+
+.class public auto ansi sealed D`1<(I) T>
+       extends [mscorlib]System.MulticastDelegate
+{
+  .method public hidebysig specialname rtspecialname 
+          instance void  .ctor(object 'object',
+                               native int 'method') runtime managed
+  {
+  }
+
+  .method public hidebysig newslot virtual 
+          instance !T  Invoke() runtime managed
+  {
+  }
+
+  .method public hidebysig newslot virtual 
+          instance class [mscorlib]System.IAsyncResult 
+          BeginInvoke(class [mscorlib]System.AsyncCallback callback,
+                      object 'object') runtime managed
+  {
+  }
+
+  .method public hidebysig newslot virtual 
+          instance !T  EndInvoke(class [mscorlib]System.IAsyncResult result) runtime managed
+  {
+  }
+
+}
+
+.class interface public abstract auto ansi I
+       implements ['CS0012-lib-missing']I1
+{
+}
\ No newline at end of file
diff --git a/mcs/errors/CS0012-5-lib.il b/mcs/errors/CS0012-5-lib.il
new file mode 100644 (file)
index 0000000..86c4274
--- /dev/null
@@ -0,0 +1,36 @@
+.assembly extern mscorlib
+{
+}
+
+.assembly extern 'CS0012-lib-missing'
+{
+}
+
+.assembly 'CS0012-5-lib'
+{
+  .hash algorithm 0x00008004
+  .ver 0:0:0:0
+}
+
+.module 'CS0012-5-lib.dll'
+
+.class public auto ansi beforefieldinit B
+       extends [mscorlib]System.Object
+{
+  .class sequential ansi sealed nested public beforefieldinit N
+         extends [mscorlib]System.ValueType
+         implements ['CS0012-lib-missing']I1
+  {
+    .pack 0
+    .size 1
+  }
+
+  .method public hidebysig specialname rtspecialname 
+          instance void  .ctor() cil managed
+  {
+    IL_0000:  ldarg.0
+    IL_0001:  call       instance void [mscorlib]System.Object::.ctor()
+    IL_0006:  ret
+  }
+
+}
diff --git a/mcs/errors/CS0012-6-lib.il b/mcs/errors/CS0012-6-lib.il
new file mode 100644 (file)
index 0000000..1f264a2
--- /dev/null
@@ -0,0 +1,28 @@
+.assembly extern mscorlib
+{
+}
+
+.assembly extern 'CS0012-lib-missing'
+{
+}
+
+.assembly 'CS0012-6-lib'
+{
+  .hash algorithm 0x00008004
+  .ver 0:0:0:0
+}
+
+.module 'CS0012-6-lib.dll'
+
+.class public auto ansi beforefieldinit A
+       extends ['CS0012-lib-missing']A1
+{
+  .method public hidebysig specialname rtspecialname 
+          instance void  .ctor() cil managed
+  {
+    IL_0000:  ldarg.0
+    IL_0001:  call       instance void ['CS0012-lib-1']A1::.ctor()
+    IL_0006:  ret
+  }
+
+}
\ No newline at end of file
diff --git a/mcs/errors/CS0012-9-lib.il b/mcs/errors/CS0012-9-lib.il
new file mode 100644 (file)
index 0000000..058c757
--- /dev/null
@@ -0,0 +1,33 @@
+.assembly extern mscorlib
+{
+}
+
+.assembly extern 'CS0012-lib-missing'
+{
+}
+
+.assembly 'CS0012-9-lib'
+{
+  .hash algorithm 0x00008004
+  .ver 0:0:0:0
+}
+
+.module 'CS0012-9-lib.dll'
+
+.class public auto ansi beforefieldinit A
+       extends [mscorlib]System.Object
+{
+  .method public hidebysig static void  M<(['CS0012-lib-missing']A1) T>() cil managed
+  {
+    IL_0000:  ret
+  }
+
+  .method public hidebysig specialname rtspecialname 
+          instance void  .ctor() cil managed
+  {
+    IL_0000:  ldarg.0
+    IL_0001:  call       instance void [mscorlib]System.Object::.ctor()
+    IL_0006:  ret
+  }
+
+}
index 3d16c86c4dd77d620d5f8d9edd9a8e39ea82d7d6..e5da2c493462d59689aacb2f2c37b2e5eccd8ad0 100644 (file)
@@ -20,7 +20,7 @@ DISTFILES = \
        $(wildcard known-issues-*)
 
 TEST_SUPPORT_FILES = \
-       CS0012-lib.dll CS0012-2-lib.dll CS0012-3-lib.dll CS0012-4-lib.dll \
+       CS0012-lib.dll CS0012-2-lib.dll CS0012-3-lib.dll CS0012-4-lib.dll CS0012-5-lib.dll CS0012-6-lib.dll CS0012-9-lib.il CS0012-10-lib.il \
        CS0103-2-lib.dll CS0118-2-lib.dll CS0122-10-lib.dll CS0122-14-lib.dll CS0122-15-lib.dll CS0122-19-lib.dll CS0143-lib.dll CS0144-3-lib.dll \
        CS0205-3-lib.dll \
        CS0229-3-lib.dll CS0229-4-lib.dll \
diff --git a/mcs/errors/cs0012-10.cs b/mcs/errors/cs0012-10.cs
new file mode 100644 (file)
index 0000000..c2d6817
--- /dev/null
@@ -0,0 +1,8 @@
+// CS0012: 
+// Line: 9
+// Compiler options: -r:CS0012-10-lib.dll
+
+class Test
+{
+       event D<Test> e;
+}
\ No newline at end of file
diff --git a/mcs/errors/cs0012-5.cs b/mcs/errors/cs0012-5.cs
new file mode 100644 (file)
index 0000000..e6b5f5b
--- /dev/null
@@ -0,0 +1,11 @@
+// CS0012: 
+// Line: 10
+// Compiler options: -r:CS0012-5-lib.dll
+
+class Test
+{
+       public static void Main ()
+       {
+               object o = typeof (B.N);
+       }
+}
\ No newline at end of file
diff --git a/mcs/errors/cs0012-6.cs b/mcs/errors/cs0012-6.cs
new file mode 100644 (file)
index 0000000..273129a
--- /dev/null
@@ -0,0 +1,11 @@
+// CS0012: 
+// Line: 10
+// Compiler options: -r:CS0012-6-lib.dll
+
+[A]
+class Test
+{
+       public static void Main ()
+       {
+       }
+}
\ No newline at end of file
diff --git a/mcs/errors/cs0012-7.cs b/mcs/errors/cs0012-7.cs
new file mode 100644 (file)
index 0000000..8329af0
--- /dev/null
@@ -0,0 +1,10 @@
+// CS0012: 
+// Line: 10
+// Compiler options: -r:CS0012-6-lib.dll
+
+class Test : A
+{
+       public static void Main ()
+       {
+       }
+}
\ No newline at end of file
diff --git a/mcs/errors/cs0012-8.cs b/mcs/errors/cs0012-8.cs
new file mode 100644 (file)
index 0000000..a4e78ea
--- /dev/null
@@ -0,0 +1,11 @@
+// CS0012: 
+// Line: 10
+// Compiler options: -r:CS0012-6-lib.dll
+
+class Test
+{
+       public static void Main ()
+       {
+               A.M.Foo ();
+       }
+}
\ No newline at end of file
diff --git a/mcs/errors/cs0012-9.cs b/mcs/errors/cs0012-9.cs
new file mode 100644 (file)
index 0000000..8f0950f
--- /dev/null
@@ -0,0 +1,11 @@
+// CS0012: 
+// Line: 9
+// Compiler options: -r:CS0012-9-lib.dll
+
+class Test
+{
+       public static void Main ()
+       {
+               A.M<string> ();
+       }
+}
\ No newline at end of file
diff --git a/mcs/errors/cs0619-54.cs b/mcs/errors/cs0619-54.cs
new file mode 100644 (file)
index 0000000..729a3ae
--- /dev/null
@@ -0,0 +1,23 @@
+// CS0619: `A' is obsolete: `msg'
+// Line: 21
+
+using System;
+
+[Obsolete ("msg", true)]
+class A
+{
+       public class M
+       {
+               public static void Foo ()
+               {
+               }
+       }
+}
+
+class C
+{
+       public static void Main ()
+       {
+               A.M.Foo ();
+       }
+}