0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/test
g-w1 cb3198af2a
stage2: @TypeOf (#7475)
* stage2: add @TypeOf

* stage2: discriminate on what type of @builtinCall in nodeMayNeedMemoryLocation

* merge upstream into my stash

* add type equality to make easier to test and defer free the types

* remove addDeclErr, I dont know why I added it, its from a different branch that im working on

* add tests

* update error message to match stage1

* use ComptimeStringMap and update which nodes don't need memory from vexu's suggestions

* fix typo

Co-authored-by: Veikka Tuominen <git@vexu.eu>

* make @TypeOf(single_arg) go to .typeof zir inst and add test for that

* unioninit, as, reduce change mayneedmemorylocation

Co-authored-by: Veikka Tuominen <git@vexu.eu>
History 2020-12-23 01:26:36 +02:00
..
src tests: run-translated-c now respects -Dtarget 2020-12-08 13:46:05 -07:00
stage1 Peer type resolution with unsigned ints and larger signed ints 2020-12-23 00:05:42 +02:00
stage2 stage2: @TypeOf (#7475) 2020-12-23 01:26:36 +02:00
standalone update guess number standalone test 2020-12-18 12:22:46 -07:00
assemble_and_link.zig update std lib to new Target API 2020-02-28 14:51:54 -05:00
cli.zig add std.testing.expectStringEndsWith 2020-12-08 21:59:24 -07:00
compare_output.zig test & docs fixups to work with new semantics 2020-03-19 09:53:55 -04:00
compile_errors.zig stage1: add missing error check on inferred struct field ptr 2020-12-21 12:40:51 +02:00
gen_h.zig run zig fmt on src/ and test/ 2020-10-31 12:21:49 +02:00
run_translated_c.zig Improve handling of C compiler intrinsics in translate-c 2020-12-22 23:59:30 +02:00
runtime_safety.zig Add some test cases for the previous commits 2020-12-05 20:14:04 +01:00
stack_traces.zig std.crypto.random: introduce fork safety 2020-12-18 15:54:01 -07:00
standalone.zig fix deadlock with build-exe on an object for windows 2020-12-11 18:34:34 -05:00
tests.zig tests: run-translated-c now respects -Dtarget 2020-12-08 13:46:05 -07:00
translate_c.zig Support casting enums to all int types. 2020-12-10 15:47:56 -05:00