test_unreachable.zig (208B) - Raw
1 // unreachable is used to assert that control flow will never reach a 2 // particular location: 3 test "basic math" { 4 const x = 1; 5 const y = 2; 6 if (x + y != 3) { 7 unreachable; 8 } 9 } 10 11 // test
zigfork of https://codeberg.org/ziglang/zig | |
| Log | Files | Refs | README | LICENSE |