aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/signed_integer_remainder_division.zig
blob: 09520064a5ce390f8bc2c467f02e346954328751 (plain)
1
2
3
4
5
6
7
export fn foo(a: i32, b: i32) i32 {
    return a % b;
}

// error
//
// :2:12: error: remainder division with 'i32' and 'i32': signed integers and floats must use @rem or @mod