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:
authorMarek Safar <marek.safar@gmail.com>2015-02-06 19:53:05 +0300
committerMarek Safar <marek.safar@gmail.com>2015-02-06 19:54:59 +0300
commit9a26c9ef5f8f367a03800369c699771a30fcfd4c (patch)
tree94c3d3ef68799f887cd247f1dd015b1d5374c410 /mcs/tests/test-912-lib.il
parentf3d505ed1e684b71a2fd7e163f74d76b8378362b (diff)
[mcs] Correctly import metadata constant with mismatched type and value. Fixes #24675
Diffstat (limited to 'mcs/tests/test-912-lib.il')
-rw-r--r--mcs/tests/test-912-lib.il17
1 files changed, 17 insertions, 0 deletions
diff --git a/mcs/tests/test-912-lib.il b/mcs/tests/test-912-lib.il
new file mode 100644
index 00000000000..be90537f934
--- /dev/null
+++ b/mcs/tests/test-912-lib.il
@@ -0,0 +1,17 @@
+.assembly extern mscorlib
+{
+}
+
+.assembly 'test-912-lib'
+{
+}
+
+.module 'test-912-lib.dll'
+
+.namespace TypeLib
+{
+ .class public auto ansi abstract Foo extends [mscorlib]System.Object
+ {
+ .field public static literal unsigned int16 CONSTANT = int16(0x0000ffff)
+ }
+} \ No newline at end of file