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/errors/err-global.il')
-rw-r--r--mcs/ilasm/errors/err-global.il33
1 files changed, 33 insertions, 0 deletions
diff --git a/mcs/ilasm/errors/err-global.il b/mcs/ilasm/errors/err-global.il
new file mode 100644
index 00000000000..911fd58f559
--- /dev/null
+++ b/mcs/ilasm/errors/err-global.il
@@ -0,0 +1,33 @@
+//Tests global field ref to a non-existant field
+
+.assembly extern mscorlib
+{
+ .ver 2:0:0:0
+}
+.assembly 'err-global'
+{
+ .ver 0:0:0:0
+}
+.module 'err-global.dll'
+
+.class private auto ansi beforefieldinit abc
+ extends [mscorlib]System.Object
+{
+ .method public hidebysig specialname rtspecialname
+ instance void .ctor() cil managed
+ {
+ .maxstack 8
+ IL_0000: ldarg.0
+ IL_0001: call instance void [mscorlib]System.Object::.ctor()
+ IL_0006: ret
+ }
+
+ .method public hidebysig static void bar() cil managed
+ {
+ .maxstack 8
+ ldsfld int32 somefield
+ pop
+ ret
+ }
+
+}