svn path=/trunk/mcs/; revision=52672
--- /dev/null
+using System;
+
+public class ExceptionWithAnonMethod
+{
+ public delegate void EmptyCallback();
+ static string res;
+
+ public static int Main()
+ {
+ try {
+ throw new Exception("e is afraid to enter anonymous land");
+ } catch(Exception e) {
+ AnonHandler(delegate {
+ Console.WriteLine(e.Message);
+ res = e.Message;
+ });
+ }
+ if (res == "e is afraid to enter anonymous land"){
+ Console.WriteLine ("Test passed");
+ return 0;
+ }
+ Console.WriteLine ("Test failed");
+ return 1;
+ }
+
+ public static void AnonHandler(EmptyCallback handler)
+ {
+ if(handler != null) {
+ handler();
+ }
+ }
+}
--- /dev/null
+using System;
+using System.Runtime.InteropServices;
+
+ [ComImport, GuidAttribute("E5CB7A31-7512-11D2-89CE-0080C792E5D8")]
+ public class CorMetaDataDispenserExClass { }
+
+ [ComImport, GuidAttribute("31BCFCE2-DAFB-11D2-9F81-00C04F79A0A3"),
+CoClass(typeof(CorMetaDataDispenserExClass))]
+ public interface MetaDataDispenserEx { }
+
+public class Test {
+
+ public static void Main () {
+ Object o = new MetaDataDispenserEx ();
+ }
+}