summaryrefslogtreecommitdiff
path: root/tests/src/JIT/Directed/coverage/oldtests/lcliimpl.il
diff options
context:
space:
mode:
authorPat Gavlin <pagavlin@microsoft.com>2015-06-10 13:11:59 -0700
committerPat Gavlin <pagavlin@microsoft.com>2015-06-10 21:31:41 -0700
commit937180e726dd08c84852a835bd711157769aed2b (patch)
tree8b9c350368cb9f2c57c2fea77d4cc90b51a80dd2 /tests/src/JIT/Directed/coverage/oldtests/lcliimpl.il
parentc65178cbb205f8573c84791a31836fb3a7dd237e (diff)
downloadcoreclr-937180e726dd08c84852a835bd711157769aed2b.tar.gz
coreclr-937180e726dd08c84852a835bd711157769aed2b.tar.bz2
coreclr-937180e726dd08c84852a835bd711157769aed2b.zip
Import the first batch of IL tests.
This set of tests is comprised of IL tests that: - only reference APIs in .Net Core's System.Runtime, System.Runtime.Extensions, and System.Threading contracts - compile to a single executable, - and expect no command line arguments at runtime.
Diffstat (limited to 'tests/src/JIT/Directed/coverage/oldtests/lcliimpl.il')
-rw-r--r--tests/src/JIT/Directed/coverage/oldtests/lcliimpl.il67
1 files changed, 67 insertions, 0 deletions
diff --git a/tests/src/JIT/Directed/coverage/oldtests/lcliimpl.il b/tests/src/JIT/Directed/coverage/oldtests/lcliimpl.il
new file mode 100644
index 0000000000..1a6bbe7311
--- /dev/null
+++ b/tests/src/JIT/Directed/coverage/oldtests/lcliimpl.il
@@ -0,0 +1,67 @@
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+
+.assembly extern legacy library mscorlib {}
+.assembly lcliimpl {}
+.method public static int32 main() cil managed
+{
+ .entrypoint
+ call int32 f()
+ ret
+}
+
+.method public static int32 f() cil managed
+{
+ // Code size 26 (0x1a)
+ .maxstack 1
+ .locals init (class itest& V_0,
+ class ctest V_1)
+ IL_0000: ldnull
+ IL_0001: stloc.1
+ IL_0002: newobj instance void ctest::.ctor()
+ IL_0007: stloc.1
+ IL_0008: ldloca.s V_1
+ IL_000a: //castclass itest
+ IL_000f: stloc.0
+ IL_0010: ldloc.0
+ IL_0011: ldind.ref
+ IL_0012: callvirt instance int32 itest::f()
+ IL_0017: br.s IL_0019
+
+ IL_0019: ret
+}
+
+.class interface private abstract auto ansi itest
+{
+ .method public newslot abstract virtual
+ instance int32 f() cil managed
+ {
+ } // end of method itest::f
+
+} // end of class itest
+
+.class private auto ansi ctest
+ extends [mscorlib]System.Object
+ implements itest
+{
+ .method public virtual instance int32 f() cil managed
+ {
+ // Code size 5 (0x5)
+ .maxstack 1
+ IL_0000: ldc.i4.s 100
+ IL_0002: br.s IL_0004
+
+ IL_0004: ret
+ } // end of method ctest::f
+
+ .method public specialname rtspecialname
+ instance void .ctor() cil managed
+ {
+ // Code size 7 (0x7)
+ .maxstack 1
+ IL_0000: ldarg.0
+ IL_0001: call instance void [mscorlib]System.Object::.ctor()
+ IL_0006: ret
+ } // end of method ctest::.ctor
+
+}