blob: 16e2150dd5800d4d926b882b822def2518b4a29f (
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
|
// 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 legacy library mscorlib {}
.assembly ldloca.exe{
}
.class public _ldloca {
.method public static int32 main(class [mscorlib]System.String[]) {
.entrypoint
.maxstack 10
.locals (int32,int32&)
ldloca 0
stloc 1
ldc.i4 0xFF
stloc 0
ldloc 1
ldind.i4
ldc.i4 0xFF
ceq
brfalse FAIL
ldc.i4 0xAA
stloc 0
ldloc 1
ldind.i4
ldc.i4 0xAA
ceq
brfalse FAIL
PASS:
ldc.i4 100
ret
FAIL:
ldc.i4 0x0
ret
}
}
|