2 // This should be part of the mscorlib tests but there is no way to generate custom
6 using System.Reflection;
10 public static int Main () {
13 arr = typeof (CustomModifiers).GetField ("field_1").GetRequiredCustomModifiers ();
16 if (arr [0] != typeof (System.Runtime.CompilerServices.IsBoxed))
19 arr = typeof (CustomModifiers).GetField ("field_1").GetOptionalCustomModifiers ();
23 arr = typeof (CustomModifiers).GetField ("field_2").GetRequiredCustomModifiers ();
27 arr = typeof (CustomModifiers).GetField ("field_2").GetOptionalCustomModifiers ();
30 if (arr [0] != typeof (System.Runtime.CompilerServices.IsVolatile))