0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/test
Andrew Kelley fbcee58cfc
zig ir.cpp details: remove the mem_slot mechanism
Previously, there was hacky code to deal with result locations and how
they work with regards to comptime values and runtime values. In
addition, there was a hacky "mem_slot" mechanism that managed the memory
for local variables, and acted differently depending on comptime vs
runtime situations. All that is deleted in this commit, and as a result,
result locations code has one less complication.

Importantly, this means that a comptime result location is now passed to
a function when it is evaluated at comptime.

This test causes many regressions, and some of the behavior tests are
disabled (commented out) in this commit. Future commits will re-enable
the tests before merging the branch.
History 2020-01-16 21:58:47 -05:00
..
src test harness: show annotated case name when translate-c test fails 2020-01-07 13:40:17 -05:00
stage1 zig ir.cpp details: remove the mem_slot mechanism 2020-01-16 21:58:47 -05:00
stage2 exported main must be pub 2019-12-03 12:50:42 -05:00
standalone zig fmt and update extern fn to callconv(.C) 2020-01-06 15:34:50 -05:00
assemble_and_link.zig use * for pointer type instead of & 2018-05-31 17:28:07 -04:00
cli.zig std.fmt.format: tuple parameter instead of var args 2019-12-08 22:53:51 -05:00
compare_output.zig avoid trying to translate microsoft's stdio.h inline functions 2020-01-01 20:33:07 -05:00
compile_errors.zig Make sure @export symbol name is not empty 2020-01-14 21:23:11 +01:00
gen_h.zig remove var args from the language 2019-12-09 15:27:27 -05:00
run_translated_c.zig Handle forward-declared functions 2020-01-10 16:34:40 -05:00
runtime_safety.zig fix safety for sentinel-slicing floats 2019-12-20 18:28:59 -05:00
stack_traces.zig update stack traces tests 2019-12-12 19:43:04 -05:00
standalone.zig improve dynamic library API 2019-12-10 12:28:28 -05:00
tests.zig fix test-gen-h and test-compile-errors regression 2020-01-05 13:08:18 -05:00
translate_c.zig Fix unsafe cast in translate_c 2020-01-11 15:51:10 -05:00