summaryrefslogtreecommitdiff
path: root/tests/src/JIT/Regression/CLR-x86-JIT/V1-M09.5-PDC/b28927/b28927.il
blob: 7eac96391b531fd85d3b66cafe21dc0134bb5d65 (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
54
55
56
57
58
59
60
61
62
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

//
//-----------------------------------------------------


//    .data PTR = int32(0x00000000)

//-------------------------
// Entry point - Main     -
//-------------------------
.assembly extern legacy library mscorlib {}
.assembly b14777
{
  .permission reqmin ['mscorlib']System.Security.Permissions.SecurityPermissionAttribute ( "SkipVerification" = true )

}
.class public _ldtoken 
{

.method static int32 main(class [mscorlib]System.String[]) 
{
.entrypoint
.locals	()
.maxstack	2
	
	ldtoken	  method instance vararg int32 _ldtoken::test(int32)
	stsfld valuetype [mscorlib]System.RuntimeMethodHandle _ldtoken::PTR

// for now, if we dont crash, we pass...

PASS:
	ldstr "Passed"
	call   void [mscorlib]System.Console::WriteLine(class [mscorlib]System.String)
	ldc.i4	100
	ret
FAIL:
	ldc.i4	0x1
	ret
}



.field static valuetype [mscorlib]System.RuntimeMethodHandle PTR

//# constructor ##
.method void _ldtoken() 
{
.maxstack	4
	ret
}

.method vararg int32 test(int32) 
{
.maxstack	2
	ldarg	1
	ldc.i4	0x2
	mul
	ret
}
}