From 937180e726dd08c84852a835bd711157769aed2b Mon Sep 17 00:00:00 2001 From: Pat Gavlin Date: Wed, 10 Jun 2015 13:11:59 -0700 Subject: 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. --- .../src/JIT/Directed/coverage/oldtests/lcliimpl.il | 67 ++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 tests/src/JIT/Directed/coverage/oldtests/lcliimpl.il (limited to 'tests/src/JIT/Directed/coverage/oldtests/lcliimpl.il') 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 + +} -- cgit v1.2.3