1 // Test for custom attributes on this .module
3 .assembly extern mscorlib
7 .assembly extern System
11 .assembly 'test-module-cattr'
15 .module 'test-module-cattr.exe'
17 .custom instance void class [System]System.ComponentModel.DescriptionAttribute::.ctor(string) = (01 00 0A 53 6F 6D 65 4D 6F 64 75 6C 65 00 00 ) // ...SomeModule..
20 .class private auto ansi beforefieldinit test
21 extends [mscorlib]System.Object
24 .method public hidebysig specialname rtspecialname
25 instance default void .ctor () cil managed
29 IL_0001: call instance void object::.ctor()
33 .method public static hidebysig
34 default void Main () cil managed
39 class [mscorlib]System.Reflection.Module V_0)
41 IL_0005: call class [mscorlib]System.Type class [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
42 IL_000a: callvirt instance class [mscorlib]System.Reflection.Module class [mscorlib]System.Type::get_Module()
45 IL_0011: call class [mscorlib]System.Attribute[] class [mscorlib]System.Attribute::GetCustomAttributes(class [mscorlib]System.Reflection.Module)
49 IL_0019: bne.un IL_002d
52 IL_0023: call void class [mscorlib]System.Console::WriteLine(string)
55 IL_002d: ldstr "Error"
56 IL_0032: call void class [mscorlib]System.Console::WriteLine(string)