-
Notifications
You must be signed in to change notification settings - Fork 783
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved CodeGen/EmittedIL/LiteralValue over to NUnit (#7291)
* Moved CodeGen/EmittedIL/LiteralValue over to NUnit * Expected IL simplified to test one thing and to be runtime independent
- Loading branch information
1 parent
29bf51a
commit 31388f7
Showing
6 changed files
with
30 additions
and
88 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Copyright (c) Microsoft Corporation. All Rights Reserved. See License.txt in the project root for license information. | ||
|
||
namespace FSharp.Compiler.UnitTests.CodeGen.EmittedIL | ||
|
||
open FSharp.Compiler.UnitTests | ||
open NUnit.Framework | ||
|
||
[<TestFixture>] | ||
module ``Literal Value`` = | ||
|
||
[<Test>] | ||
let ``Literal Value``() = | ||
CompilerAssert.CompileLibraryAndVerifyIL | ||
""" | ||
module LiteralValue | ||
[<Literal>] | ||
let x = 7 | ||
[<EntryPoint>] | ||
let main _ = | ||
0 | ||
""" | ||
(fun verifier -> verifier.VerifyIL [ | ||
""" | ||
.field public static literal int32 x = int32(0x00000007) | ||
""" | ||
]) |
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
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
6 changes: 0 additions & 6 deletions
6
tests/fsharpqa/Source/CodeGen/EmittedIL/LiteralValue/LiteralValue.fs
This file was deleted.
Oops, something went wrong.
81 changes: 0 additions & 81 deletions
81
tests/fsharpqa/Source/CodeGen/EmittedIL/LiteralValue/LiteralValue.il.bsl
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.