2010-05-13 Rodrigo Kumpera <rkumpera@novell.com>
[mono-project.git] / mcs / tests / gtest-437.cs
blob45e4aba61c527b9ebc8a41e37f86dde85cc4a0cb
1 // Compiler options: -unsafe
3 using System;
4 using System.Reflection;
6 class C
8 public static int Main ()
10 object[] o = Assembly.GetExecutingAssembly ().GetCustomAttributes (typeof (System.Security.Permissions.SecurityPermissionAttribute), false);
11 if (o.Length != 1)
12 return 1;
14 System.Security.Permissions.SecurityPermissionAttribute a = (System.Security.Permissions.SecurityPermissionAttribute) o[0];
16 if (a.Action != System.Security.Permissions.SecurityAction.RequestMinimum)
17 return 2;
19 if (!a.SkipVerification)
20 return 3;
22 Console.WriteLine (a);
23 return 0;