2010-06-03 Jb Evain <jbevain@novell.com>
[mcs.git] / ilasm / tests / test-sec-suppress.il
blob08562b42c478c9e9789d395c82285180fa28909a
1 // a Type or method with a custom attribute SuppressUnmanagedCodeSecurityAttribute
2 // automatically gets a HasSecurity attribute set.
4 .assembly extern mscorlib
7 .assembly 'sec'
10 .module sec.dll
13   .class private auto ansi beforefieldinit test
14         extends [mscorlib]System.Object
15   {
16     .custom instance void class [mscorlib]System.Security.SuppressUnmanagedCodeSecurityAttribute::.ctor() =  (01 00 00 00 )
18     .method public hidebysig  specialname  rtspecialname 
19            instance default void .ctor ()  cil managed 
20     {
21         .maxstack 8
22         IL_0000:  ldarg.0 
23         IL_0001:  call instance void object::.ctor()
24         IL_0006:  ret 
25     }
27     .method private hidebysig 
28            instance default void abc ()  cil managed 
29     {
30         .custom instance void class [mscorlib]System.Security.SuppressUnmanagedCodeSecurityAttribute::.ctor() =  (01 00 00 00 )
32         .maxstack 8
33         IL_0000:  ret 
34     }
36   }