Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc2cb706

Browse files
committed
add il compare
1 parent9637b37 commitc2cb706

File tree

2 files changed

+88
-0
lines changed

2 files changed

+88
-0
lines changed
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
2+
// Microsoft (R) .NET Framework IL Disassembler. Version 4.6.1055.0
3+
// Copyright (c) Microsoft Corporation. All rights reserved.
4+
5+
6+
7+
// Metadata version: v4.0.30319
8+
.assembly extern mscorlib
9+
{
10+
.publickeytoken= (B7 7A 5C561934 E089 )// .z\V.4..
11+
.ver4:0:0:0
12+
}
13+
.assembly extern FSharp.Core
14+
{
15+
.publickeytoken= (B0 3F 5F 7F11 D5 0A 3A )// .?_....:
16+
.ver4:4:3:0
17+
}
18+
.assembly test
19+
{
20+
.custom instance void [FSharp.Core]Microsoft.FSharp.Core.FSharpInterfaceDataVersionAttribute::.ctor(int32,
21+
int32,
22+
int32)= (01000200000000000000000000000000 )
23+
.hash algorithm 0x00008004
24+
.ver0:0:0:0
25+
}
26+
.mresource public FSharpSignatureData.test
27+
{
28+
// Offset: 0x00000000 Length: 0x00000274
29+
// WARNING: managed resource file FSharpSignatureData.test created
30+
}
31+
.mresource public FSharpOptimizationData.test
32+
{
33+
// Offset: 0x00000278 Length: 0x000000E6
34+
// WARNING: managed resource file FSharpOptimizationData.test created
35+
}
36+
.module test.exe
37+
// MVID: {5AA585B2-D9C1-2E4E-A745-0383B285A55A}
38+
.imagebase 0x00400000
39+
.file alignment 0x00000200
40+
.stackreserve 0x00100000
41+
.subsystem 0x0003// WINDOWS_CUI
42+
.corflags 0x00000001// ILONLY
43+
// Image base: 0x03930000
44+
45+
46+
// =============== CLASS MEMBERS DECLARATION ===================
47+
48+
.class public abstract auto ansi sealed Test
49+
extends [mscorlib]System.Object
50+
{
51+
.custom instance void [FSharp.Core]Microsoft.FSharp.Core.CompilationMappingAttribute::.ctor(valuetype [FSharp.Core]Microsoft.FSharp.Core.SourceConstructFlags)= (0100070000000000 )
52+
.field public static literal int32 x= int32(0x00000007)
53+
.custom instance void [FSharp.Core]Microsoft.FSharp.Core.LiteralAttribute::.ctor()= (01000000 )
54+
.custom instance void [mscorlib]System.Diagnostics.DebuggerBrowsableAttribute::.ctor(valuetype [mscorlib]System.Diagnostics.DebuggerBrowsableState)= (0100000000000000 )
55+
.method public static int32 main(string[] argv) cil managed
56+
{
57+
.entrypoint
58+
.custom instance void [FSharp.Core]Microsoft.FSharp.Core.EntryPointAttribute::.ctor()= (01000000 )
59+
// Code size 2 (0x2)
60+
.maxstack8
61+
IL_0000: ldc.i4.0
62+
IL_0001: ret
63+
}// end of method Test::main
64+
65+
}// end of class Test
66+
67+
.class private abstract auto ansi sealed '<StartupCode$test>'.$Test
68+
extends [mscorlib]System.Object
69+
{
70+
}// end of class '<StartupCode$test>'.$Test
71+
72+
73+
// =============================================================
74+
75+
// *********** DISASSEMBLY COMPLETE ***********************
76+
// WARNING: Created Win32 resource file test.il.res

‎tests/fsharp/tests.fs‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1465,6 +1465,18 @@ module RegressionTests =
14651465

14661466
peverify cfg"test.exe"
14671467

1468+
ildasm cfg"/out=test.il""test.exe"
1469+
1470+
letoutFile="test.il"
1471+
letexpectedFile="test.il.bsl"
1472+
1473+
letdiff= difftrue"regression/literal-value-bug-1/test.il.bsl""regression/literal-value-bug-1/test.il"
1474+
1475+
match diffwith
1476+
|""->()
1477+
|_->
1478+
Assert.Fail(sprintf"'%s' and '%s' differ;%A"(getfullpath cfg outFile)(getfullpath cfg expectedFile) diff)
1479+
14681480
[<Test >]
14691481
let``struct-tuple-bug-1-FSC_BASIC``()= singleTestBuildAndRun"regression/struct-tuple-bug-1" FSC_BASIC
14701482

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp