Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-byref.il « tests « ilasm « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 838a7b20f10551df087596064071ab20f45e0f7a (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
//Test for call to a method returning a byref
.assembly extern mscorlib
{
}
.assembly 'test-byref'
{
}

  .class public auto ansi beforefieldinit Test
  	extends [mscorlib]System.Object
  {
    .field  private   float64[,] _data

    .method public hidebysig  specialname  rtspecialname 
           instance default void .ctor ()  cil managed 
    {
	.maxstack 8
	IL_0000:  ldarg.0 
	IL_0001:  call instance void object::.ctor()
	IL_0006:  ret 
    }

    .method public hidebysig 
           instance default void multByTwo ()  cil managed 
    {
	.maxstack 8
	IL_0000:  ldarg.0 
	IL_0001:  ldfld  float64[,] Test::_data
	IL_0006:  ldc.i4.0 
	IL_0007:  ldc.i4.0 
	IL_0008:  call instance float64&  float64[,]::Address(int32, int32)
	IL_000d:  dup 
	IL_000e:  ldind.r8 
	IL_000f:  ldc.r8 4
	IL_0018:  mul 
	IL_0019:  stind.r8 
	IL_001a:  ret 
    }
  }