-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v.eval: lookup constants in
builtin
, when they are not found in the…
… current module; add test (#23745)
- Loading branch information
Showing
4 changed files
with
28 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
-2147483648 | ||
2147483647 | ||
2147483647 | ||
-2147483648 |
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,11 @@ | ||
const local_max_int = int(2147483647) | ||
const local_min_int = int(-2147483648) | ||
const i64_min_int32 = i64(local_min_int + 1) - 1 | ||
const i64_max_int32 = i64(local_max_int - 1) + 1 | ||
const abc = i64(max_int) | ||
const def = i64(min_int) | ||
|
||
println(i64_min_int32) | ||
println(i64_max_int32) | ||
println(abc) | ||
println(def) |