summaryrefslogtreecommitdiff
path: root/tests/src/Loader/classloader/rmv/il/RMV-4-1-6d.il
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/Loader/classloader/rmv/il/RMV-4-1-6d.il')
-rw-r--r--tests/src/Loader/classloader/rmv/il/RMV-4-1-6d.il25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/src/Loader/classloader/rmv/il/RMV-4-1-6d.il b/tests/src/Loader/classloader/rmv/il/RMV-4-1-6d.il
new file mode 100644
index 0000000000..8efc691af1
--- /dev/null
+++ b/tests/src/Loader/classloader/rmv/il/RMV-4-1-6d.il
@@ -0,0 +1,25 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+
+.assembly extern System.Console { }
+//Checked that there must be exactly NumNamed occurences of NamedArgs
+
+.assembly extern 'RMV-4-CA'{}
+.assembly extern mscorlib {}
+
+.assembly 'RMV-4-1-6a'{
+ //Creates a CA with a blob that indicates there are no NamedArgs but does contain one NamedArg
+ .custom instance void ['RMV-4-CA']MyCA::.ctor() = ( 01 00 00 00 54 08 0F 50 75 62 49 6E 73 74 50 72 // ....T..PubInstPr
+ 6F 70 65 72 74 79 03 00 00 00 ) // operty....
+}
+
+.class CMain extends [mscorlib]System.Object{
+ .method public static int32 Main(){
+ .entrypoint
+ ldstr "FAIL - 4.1.6a - Was allowed to declare a customattribute whose prolog isn't 0x0001"
+ call void [System.Console]System.Console::WriteLine(string)
+ ldc.i4 100
+ ret
+ }
+}