diff options
Diffstat (limited to 'mcs/ilasm/tests/gen-nested2.il')
-rw-r--r-- | mcs/ilasm/tests/gen-nested2.il | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/mcs/ilasm/tests/gen-nested2.il b/mcs/ilasm/tests/gen-nested2.il new file mode 100644 index 00000000000..681511e9a06 --- /dev/null +++ b/mcs/ilasm/tests/gen-nested2.il @@ -0,0 +1,55 @@ +// Test for specifying namespace as part of the type name, +// instead of using .namespace directive. ildasm 2.0 uses +// this style + +.assembly extern mscorlib +{ + .ver 1:0:5000:0 +} +.assembly 'nested' +{ + .ver 0:0:0:0 +} +.module nested.exe + + .class private auto ansi beforefieldinit A.B + extends [mscorlib]System.Object + { + .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 + } + + .class nested public auto ansi beforefieldinit C + extends [mscorlib]System.Object + { + .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 + } + } + + } + .class private auto ansi beforefieldinit test + extends A.B/C + { + + .method public hidebysig specialname rtspecialname + instance default void .ctor () cil managed + { + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void class A.B/C::.ctor() + IL_0006: ret + } + + } + |