| author | |
| committer | |
| log | 0924f17a234c48c4a7a17e44a1ffac6a9026d5e5 |
| tree | f6381f3f3e80bab71c88867b6461da9059f67304 |
| parent | 65943010c70b33e711a038dff5f80066045ee1b7 |
| signature |
2 files changed, 7 insertions(+), 3 deletions(-)
src/Sema.zig+2-2| ... | ... | @@ -18230,7 +18230,7 @@ fn resolvePeerTypes( |
| 18230 | 18230 | convert_to_slice = false; // it already is a slice |
| 18231 | 18231 | |
| 18232 | 18232 | // If the pointer is const then we need to const |
| 18233 | if (candidate_ty.childType().isConstPtr()) | |
| 18233 | if (candidate_ty.isConstPtr()) | |
| 18234 | 18234 | seen_const = true; |
| 18235 | 18235 | |
| 18236 | 18236 | continue; |
| ... | ... | @@ -18253,7 +18253,7 @@ fn resolvePeerTypes( |
| 18253 | 18253 | convert_to_slice = false; // it already is a slice |
| 18254 | 18254 | |
| 18255 | 18255 | // If the prev pointer is const then we need to const |
| 18256 | if (chosen_child_ty.isConstPtr()) | |
| 18256 | if (chosen_ty.isConstPtr()) | |
| 18257 | 18257 | seen_const = true; |
| 18258 | 18258 | |
| 18259 | 18259 | continue; |
test/behavior/cast.zig+5-1| ... | ... | @@ -964,7 +964,11 @@ test "cast between C pointer with different but compatible types" { |
| 964 | 964 | } |
| 965 | 965 | |
| 966 | 966 | test "peer type resolve string lit with sentinel-terminated mutable slice" { |
| 967 | if (builtin.zig_backend != .stage1) return error.SkipZigTest; // TODO | |
| 967 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO | |
| 968 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO | |
| 969 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO | |
| 970 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | |
| 971 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO | |
| 968 | 972 | |
| 969 | 973 | var array: [4:0]u8 = undefined; |
| 970 | 974 | array[4] = 0; // TODO remove this when #4372 is solved |