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