cli: add bounded std copy/search and checked arithmetic
This commit is contained in:
36 files changed
+1533
-7
No files matched your search
@@ -0,0 +1,11 @@
|
||||
// expect: run
|
||||
// result: {"variant":"overflow","payload":[]}
|
||||
// equivalent: std/bounded_arithmetic.air
|
||||
// phase: 6
|
||||
// spec: docs/spec/16-standard-library.md §2.1.1
|
||||
module test.bounded_arithmetic
|
||||
import std.math;
|
||||
|
||||
fn main() -> std.math.U64Result
|
||||
effects []
|
||||
{ return std.math.checked_add_u64(18446744073709551615, 1); }
|
||||
Reference in new issue
Block a user