aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/non_pointer_given_to_ptrToInt.zig
blob: 27b5d6d1f73dfcb70b326b092972bef23a0e2654 (plain)
1
2
3
4
5
6
7
8
9
export fn entry(x: i32) usize {
    return @ptrToInt(x);
}

// error
// backend=stage2
// target=native
//
// :2:22: error: expected pointer, found 'i32'