Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-fno-shadow, to defeat some of MSVC's default warnings about shadowin…
…g a declaration of a different type
- Loading branch information
Showing
6 changed files
with
40 additions
and
3 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
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
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
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,32 @@ | ||
module NoShadow | ||
|
||
module U32 = FStar.UInt32 | ||
module U64 = FStar.UInt64 | ||
module HS = FStar.HyperStack | ||
|
||
open FStar.HyperStack.ST | ||
|
||
let f x: StackInline unit (fun _ -> true) (fun _ _ _ -> true) = | ||
let x = U32.(x +%^ 1ul) in | ||
TestLib.checku32 x 1ul | ||
|
||
let g x: StackInline unit (fun _ -> true) (fun _ _ _ -> true) = | ||
let x = U64.(x +%^ 1UL) in | ||
TestLib.checku64 x 1UL | ||
|
||
let b (): Stack bool (fun _ -> true) (fun _ _ _ -> true) = | ||
true | ||
|
||
let h x y: Stack unit (fun _ -> true) (fun _ _ _ -> true) = | ||
push_frame (); | ||
if b () then begin | ||
f x; | ||
if b () then begin | ||
g y | ||
end | ||
end; | ||
pop_frame () | ||
|
||
let main (): Stack Int32.t (fun _ -> true) (fun _ _ _ -> true) = | ||
h 0ul 0UL; | ||
0l |