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

newobj-abstract.il « tests « mono - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c5bb8a935c3657936ffbf353271bdf8ab1b6c497 (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
.assembly extern mscorlib {}

.assembly 'newobj-abstract' {}

.class private auto ansi beforefieldinit Program
       extends [mscorlib]System.Object
{
  .method public hidebysig static int32  Main() cil managed
  {
    .entrypoint
    .locals init (int32 V_0)

    ldc.i4.1
    stloc.0
    .try
    {
      call       void Program::NewAbstract()
      leave.s    leavetarget

    }  // end .try
    catch [mscorlib]System.MemberAccessException
    {
      pop
      ldc.i4.0
      stloc.0
      leave.s    leavetarget
    }
leavetarget:
    ldloc.0
    ret
  } // end of method Program::Main

  .method public hidebysig static void  NewAbstract() cil managed
  {
    newobj     instance void Foo::.ctor()
    call       void [mscorlib]System.GC::KeepAlive(object)
    ret
  }

  .method public hidebysig specialname rtspecialname
          instance void  .ctor() cil managed
  {
    ldarg.0
    call instance void [mscorlib]System.Object::.ctor()
    ret
  }

}

.class private abstract auto ansi beforefieldinit Foo
       extends [mscorlib]System.Object
{
  .method public hidebysig specialname rtspecialname
          instance void  .ctor() cil managed
  {
    ldarg.0
    call instance void [mscorlib]System.Object::.ctor()
    ret
  }

}