Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / tests / load-exceptions.cs
index cb2fc0983757332593bf06f99e62f07cbdb0ed50..5bfa3a89da58104ebfd20516c665ed37dbf4bdb2 100644 (file)
@@ -339,8 +339,18 @@ public class Tests : LoadMissing {
                return 2;
        }
 
+       public static int test_0_reflection_on_field_with_missing_custom_attr () {
+               var t = typeof (BadOverridesDriver).Assembly.GetType ("FieldWithMissingCustomAttribute");
+               try {
+                       Console.WriteLine (t.GetFields ()[0].CustomAttributes);
+                       return 1;
+               } catch (FileNotFoundException) {
+                       return 0;
+               }
+               return 2;
+       }
 
-       public static int Main () {
-               return TestDriver.RunTests (typeof (Tests));
+       public static int Main (string[] args) {
+               return TestDriver.RunTests (typeof (Tests), args);
        }
 }