summaryrefslogtreecommitdiff
path: root/tests/src/JIT/Regression/CLR-x86-JIT/V1-M09.5-PDC/b29583/b29583.il
blob: 465c00551b73500502c946f7e40de769c07e867f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// 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 extern System.Console
{
  .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
  .ver 4:0:0:0
}
.assembly 'box' { }

.namespace BoxTest
{
  .class auto ansi App extends [mscorlib]System.Object
  {
    .method private static int32 Main() il managed
    {
		.entrypoint
		.maxstack  3
		.locals (class [mscorlib]System.Object obj, float64 F)
		
		ldc.r8  0.1
		stloc  F
		
		ldloc  F
		box  [mscorlib]System.Double
		stloc	obj
		
		ldloca	obj
		mkrefany	[mscorlib]System.Object
		dup
		refanytype
		pop
		refanyval	[mscorlib]System.Object
		ldind.ref
		unbox 		[mscorlib]System.Double
		
		ldind.r8
		ldc.r8  0.1
		beq     ok
		
		ldc.i4.1
		ldstr "Failed"
		br done
ok:	
		ldc.i4 100
		ldstr "Passed"
done:
		call   void [System.Console]System.Console::WriteLine(class [mscorlib]System.String)
		ret
    }
  }
}