Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/ilasm/tests/test-sec-suppress.il')
-rw-r--r--mcs/ilasm/tests/test-sec-suppress.il36
1 files changed, 36 insertions, 0 deletions
diff --git a/mcs/ilasm/tests/test-sec-suppress.il b/mcs/ilasm/tests/test-sec-suppress.il
new file mode 100644
index 00000000000..08562b42c47
--- /dev/null
+++ b/mcs/ilasm/tests/test-sec-suppress.il
@@ -0,0 +1,36 @@
+// a Type or method with a custom attribute SuppressUnmanagedCodeSecurityAttribute
+// automatically gets a HasSecurity attribute set.
+
+.assembly extern mscorlib
+{
+}
+.assembly 'sec'
+{
+}
+.module sec.dll
+
+
+ .class private auto ansi beforefieldinit test
+ extends [mscorlib]System.Object
+ {
+ .custom instance void class [mscorlib]System.Security.SuppressUnmanagedCodeSecurityAttribute::.ctor() = (01 00 00 00 )
+
+ .method public hidebysig specialname rtspecialname
+ instance default void .ctor () cil managed
+ {
+ .maxstack 8
+ IL_0000: ldarg.0
+ IL_0001: call instance void object::.ctor()
+ IL_0006: ret
+ }
+
+ .method private hidebysig
+ instance default void abc () cil managed
+ {
+ .custom instance void class [mscorlib]System.Security.SuppressUnmanagedCodeSecurityAttribute::.ctor() = (01 00 00 00 )
+
+ .maxstack 8
+ IL_0000: ret
+ }
+
+ }