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

Commit1bc3938

Browse files
committed
move test to fsharpqa
1 parent845e4c0 commit1bc3938

File tree

5 files changed

+95
-20
lines changed

5 files changed

+95
-20
lines changed

‎tests/fsharp/tests.fs‎

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1457,26 +1457,6 @@ module ToolsTests =
14571457

14581458
moduleRegressionTests=
14591459

1460-
[<Test>]
1461-
let``literal-value-bug-1-FSC_BASIC``()=
1462-
letcfg= testConfig"regression/literal-value-bug-1"
1463-
1464-
fsc cfg"%s --optimize- -o:test.exe -g" cfg.fsc_flags["test.fs"]
1465-
1466-
peverify cfg"test.exe"
1467-
1468-
ildasm cfg"/out=test.il""test.exe"
1469-
1470-
letoutFile="test.il"
1471-
letexpectedFile="test.il.bsl"
1472-
1473-
letdiff= fsdiff cfg outFile expectedFile
1474-
1475-
match diffwith
1476-
|""->()
1477-
|_->
1478-
Assert.Fail(sprintf"'%s' and '%s' differ;%A"(getfullpath cfg outFile)(getfullpath cfg expectedFile) diff)
1479-
14801460
[<Test>]
14811461
let``literal-value-bug-2-FSC_BASIC``()= singleTestBuildAndRun"regression/literal-value-bug-2" FSC_BASIC
14821462

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[<Literal>]
2+
letx=7
3+
4+
[<EntryPoint>]
5+
letmain argv=
6+
0
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
2+
// Microsoft (R) .NET Framework IL Disassembler. Version 4.5.22220.0
3+
4+
5+
6+
// Metadata version: v4.0.30319
7+
.assembly extern mscorlib
8+
{
9+
.publickeytoken= (B7 7A 5C561934 E089 )// .z\V.4..
10+
.ver4:0:0:0
11+
}
12+
.assembly extern FSharp.Core
13+
{
14+
.publickeytoken= (B0 3F 5F 7F11 D5 0A 3A )// .?_....:
15+
.ver4:4:3:0
16+
}
17+
.assembly test
18+
{
19+
.custom instance void [FSharp.Core]Microsoft.FSharp.Core.FSharpInterfaceDataVersionAttribute::.ctor(int32,
20+
int32,
21+
int32)= (01000200000000000000000000000000 )
22+
23+
// --- The following custom attribute is added automatically, do not uncomment -------
24+
// .custom instance void [mscorlib]System.Diagnostics.DebuggableAttribute::.ctor(valuetype [mscorlib]System.Diagnostics.DebuggableAttribute/DebuggingModes) = ( 01 00 01 01 00 00 00 00 )
25+
26+
.hash algorithm 0x00008004
27+
.ver0:0:0:0
28+
}
29+
.mresource public FSharpSignatureData.test
30+
{
31+
// Offset: 0x00000000 Length: 0x00000274
32+
// WARNING: managed resource file FSharpSignatureData.test created
33+
}
34+
.mresource public FSharpOptimizationData.test
35+
{
36+
// Offset: 0x00000278 Length: 0x0000006F
37+
// WARNING: managed resource file FSharpOptimizationData.test created
38+
}
39+
.module test.exe
40+
// MVID: {5AA663EB-D9C1-2E4E-A745-0383EB63A65A}
41+
.imagebase 0x00400000
42+
.file alignment 0x00000200
43+
.stackreserve 0x00100000
44+
.subsystem 0x0003// WINDOWS_CUI
45+
.corflags 0x00000001// ILONLY
46+
// Image base: 0x02BF0000
47+
48+
49+
// =============== CLASS MEMBERS DECLARATION ===================
50+
51+
.class public abstract auto ansi sealed Test
52+
extends [mscorlib]System.Object
53+
{
54+
.custom instance void [FSharp.Core]Microsoft.FSharp.Core.CompilationMappingAttribute::.ctor(valuetype [FSharp.Core]Microsoft.FSharp.Core.SourceConstructFlags)= (0100070000000000 )
55+
.field public static literal int32 x= int32(0x00000007)
56+
.custom instance void [FSharp.Core]Microsoft.FSharp.Core.LiteralAttribute::.ctor()= (01000000 )
57+
.custom instance void [mscorlib]System.Diagnostics.DebuggerBrowsableAttribute::.ctor(valuetype [mscorlib]System.Diagnostics.DebuggerBrowsableState)= (0100000000000000 )
58+
.method public static int32 main(string[] argv) cil managed
59+
{
60+
.entrypoint
61+
.custom instance void [FSharp.Core]Microsoft.FSharp.Core.EntryPointAttribute::.ctor()= (01000000 )
62+
// Code size 2 (0x2)
63+
.maxstack8
64+
IL_0000: ldc.i4.0
65+
IL_0001: ret
66+
}// end of method Test::main
67+
68+
}// end of class Test
69+
70+
.class private abstract auto ansi sealed '<StartupCode$test>'.$Test
71+
extends [mscorlib]System.Object
72+
{
73+
}// end of class '<StartupCode$test>'.$Test
74+
75+
76+
// =============================================================
77+
78+
// *********** DISASSEMBLY COMPLETE ***********************
79+
// WARNING: Created Win32 resource file test.res
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
SOURCE=AsyncExpressionSteppingTest1.fs SCFLAGS="-a -g --test:EmitFeeFeeAs100001 --optimize-" COMPILE_ONLY=1 POSTCMD="..\\CompareIL.cmd AsyncExpressionSteppingTest1.dll"# AsyncExpressionSteppingTest1.fs -
2+
3+
SOURCE=AsyncExpressionSteppingTest2.fs SCFLAGS="-a -g --test:EmitFeeFeeAs100001 --optimize-" COMPILE_ONLY=1 POSTCMD="..\\CompareIL.cmd AsyncExpressionSteppingTest2.dll"# AsyncExpressionSteppingTest2.fs -
4+
5+
SOURCE=AsyncExpressionSteppingTest3.fs SCFLAGS="-a -g --test:EmitFeeFeeAs100001 --optimize-" COMPILE_ONLY=1 POSTCMD="..\\CompareIL.cmd AsyncExpressionSteppingTest3.dll"# AsyncExpressionSteppingTest3.fs -
6+
7+
SOURCE=AsyncExpressionSteppingTest4.fs SCFLAGS="-a -g --test:EmitFeeFeeAs100001 --optimize-" COMPILE_ONLY=1 POSTCMD="..\\CompareIL.cmd AsyncExpressionSteppingTest4.dll"# AsyncExpressionSteppingTest4.fs -
8+
SOURCE=AsyncExpressionSteppingTest5.fs SCFLAGS="-a -g --test:EmitFeeFeeAs100001 --optimize-" COMPILE_ONLY=1 POSTCMD="..\\CompareIL.cmd AsyncExpressionSteppingTest5.dll"# AsyncExpressionSteppingTest5.fs -
9+
SOURCE=AsyncExpressionSteppingTest6.fs SCFLAGS="-a -g --test:EmitFeeFeeAs100001 --optimize-" COMPILE_ONLY=1 POSTCMD="..\\CompareIL.cmd AsyncExpressionSteppingTest6.dll"# AsyncExpressionSteppingTest6.fs -

‎tests/fsharpqa/Source/test.lst‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ CodeGen01,NoMT,CodeGenCodeGen\EmittedIL\DoNotBoxStruct
1414
CodeGen01,NoMT,CodeGenCodeGen\EmittedIL\GeneratedIterators
1515
CodeGen01,NoMT,CodeGenCodeGen\EmittedIL\InequalityComparison
1616
CodeGen01,NoMT,CodeGenCodeGen\EmittedIL\ListExpressionStepping
17+
CodeGen01,NoMT,CodeGenCodeGen\EmittedIL\LiteralValue
1718
CodeGen01,NoMT,CodeGenCodeGen\EmittedIL\MethodImplAttribute
1819
CodeGen01,NoMT,CodeGenCodeGen\EmittedIL\Misc
1920
CodeGen01,NoMT,CodeGenCodeGen\EmittedIL\Mutation

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp