mirror of
https://github.com/ziglang/zig.git
synced 2026-11-22 04:37:39 -05:00
1 parent
eb83111f02
commit
404defd99b
8 files changed
+153
-3
No files matched your search
@@ -1456,6 +1456,16 @@ fn div0(a: i32, b: i32) -> i32 {
|
||||
}
|
||||
)SOURCE");
|
||||
|
||||
add_debug_safety_case("exact division failure", R"SOURCE(
|
||||
pub fn main(args: [][]u8) -> %void {
|
||||
div_exact(10, 3);
|
||||
}
|
||||
#static_eval_enable(false)
|
||||
fn div_exact(a: i32, b: i32) -> i32 {
|
||||
@div_exact(a, b)
|
||||
}
|
||||
)SOURCE");
|
||||
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in new issue
Block a user