| author | |
| committer | |
| log | 24646b8b5d026a75deb5b3eace0e9142f0719da0 |
| tree | 56e182a27d3e52b4b6eca48848cd21439256b1b6 |
| parent | 8b35f09f4ae29eb2768d47e8a8bae0f4131d6bad |
2 files changed, 1 insertions(+), 3 deletions(-)
src/codegen/llvm.zig+1-2| ... | ... | @@ -10668,8 +10668,7 @@ const ParamTypeIterator = struct { |
| 10668 | 10668 | .memory => { |
| 10669 | 10669 | it.zig_index += 1; |
| 10670 | 10670 | it.llvm_index += 1; |
| 10671 | it.byval_attr = true; | |
| 10672 | return .byref; | |
| 10671 | return .byref_mut; | |
| 10673 | 10672 | }, |
| 10674 | 10673 | .sse => { |
| 10675 | 10674 | it.zig_index += 1; |
test/c_abi/main.zig-1| ... | ... | @@ -1032,7 +1032,6 @@ extern fn c_modify_by_ref_param(ByRef) ByRef; |
| 1032 | 1032 | |
| 1033 | 1033 | test "C function modifies by ref param" { |
| 1034 | 1034 | if (comptime builtin.cpu.arch.isPPC()) return error.SkipZigTest; |
| 1035 | if (builtin.cpu.arch == .x86_64 and builtin.os.tag == .windows and builtin.mode != .Debug) return error.SkipZigTest; | |
| 1036 | 1035 | |
| 1037 | 1036 | const res = c_modify_by_ref_param(.{ .val = 1, .arr = undefined }); |
| 1038 | 1037 | try expect(res.val == 42); |