-
Notifications
You must be signed in to change notification settings - Fork 797
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
67 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
@if "%_echo%"=="" echo off | ||
|
||
setlocal | ||
REM Configure the sample, i.e. where to find the F# compiler and C# compiler. | ||
if EXIST build.ok DEL /f /q build.ok | ||
|
||
call %~d0%~p0..\..\..\config.bat | ||
@if ERRORLEVEL 1 goto Error | ||
|
||
if NOT "%FSC:NOTAVAIL=X%" == "%FSC%" ( | ||
REM Skipping test for FSI.EXE | ||
goto Skip | ||
) | ||
|
||
"%FSC%" %fsc_flags% /r:Library.dll /out:test.exe test.fs | ||
@if ERRORLEVEL 1 goto Error | ||
|
||
"%PEVERIFY%" test.exe | ||
@if ERRORLEVEL 1 goto Error | ||
|
||
:Ok | ||
echo Built fsharp %~f0 ok. | ||
echo. > build.ok | ||
endlocal | ||
exit /b 0 | ||
|
||
:Skip | ||
echo Skipped %~f0 | ||
endlocal | ||
exit /b 0 | ||
|
||
|
||
:Error | ||
endlocal | ||
exit /b %ERRORLEVEL% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
@if "%_echo%"=="" echo off | ||
|
||
setlocal | ||
dir build.ok > NUL ) || ( | ||
@echo 'build.ok' not found. | ||
goto :ERROR | ||
) | ||
|
||
call %~d0%~p0..\..\..\config.bat | ||
|
||
%CLIX% .\test.exe | ||
if ERRORLEVEL 1 goto Error | ||
|
||
:Ok | ||
echo Ran fsharp %~f0 ok. | ||
endlocal | ||
exit /b 0 | ||
|
||
:Error | ||
endlocal | ||
exit /b %ERRORLEVEL% | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
open Library | ||
|
||
let main _ = | ||
let cls = Class1() | ||
let len = cls.GetLength("123") | ||
if len = 3 then 0 else 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters