summaryrefslogtreecommitdiff
path: root/tests/src/JIT/Methodical/flowgraph/bug619534/ILStackAllocRepro.il
blob: e441c4afe46cee9f85dad77d508d45f889447836 (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
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

.assembly extern System.Console
{
  .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
  .ver 4:0:0:0
}


.assembly ILStackAllocRepro {}
.assembly extern mscorlib{auto}

.class private auto ansi beforefieldinit Foo
       extends [mscorlib]System.Object
{
  .field private static int32* buffer
  .method private hidebysig static int32 Main() cil managed
  {
    .entrypoint
    // Code size       20 (0x14)
    .maxstack  2
    .locals init (int32* V_0)
    IL_0000:  ldc.i4.8
    IL_0001:  localloc
    IL_0003:  stsfld     int32* Foo::buffer
    IL_0008:  ldsfld     int32* Foo::buffer
    IL_000d:  ldind.i4
    IL_000e:  call       void [System.Console]System.Console::WriteLine(int32)
ldc.i4 100
    IL_0013:  ret
  } // end of method Foo::Main

} // end of class Foo