0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/test
Andrew Kelley bcfebb4b2b stage2: improvements aimed at std lib integration
* AstGen: emit decl lookup ZIR instructions rather than directly
   looking up decls in AstGen. This is necessary because we want to
   reuse the same immutable ZIR code for multiple generic instantiations
   (and comptime function calls).
 * AstGen: fix using members_len instead of fields_len for struct decls.
 * structs: the struct_decl ZIR instruction is now also a block. This is
   so that the type expressions, default field value expressions, and
   alignment expressions can be evaluated in a scope that contains the
   decls from the struct namespace itself.
 * Add "std" and "builtin" packages to the builtin package.
 * Don't try to build glibc, musl, or mingw-w64 when using `-ofmt=c`.
 * builtin.zig is generated without `usingnamespace`.
 * builtin.zig takes advantage of `std.zig.fmtId` for CPU features.
 * A first pass at implementing `usingnamespace`. It's problematic and
   should either be deleted, or polished, before merging this branch.
 * Sema: allow explicitly specifying the namespace in which to look up
   Decls. This is used by `struct_decl` in order to put the decls from
   the struct namespace itself in scope when evaluating the type
   expressions, default value expressions, and alignment expressions.
 * Module: fix `analyzeNamespace` assuming that it is the top-level root
   declaration node.
 * Sema: implement comptime and runtime cmp operator.
 * Sema: implement peer type resolution for enums and enum literals.
 * Pull in the changes from master branch:
   262e09c482.
 * ZIR: complete out simple_ptr_type debug printing
History 2021-04-15 19:06:39 -07:00
..
src tests: Use {s} instead of {} when formatting strings 2021-01-02 17:12:57 -07:00
stage1 Merge remote-tracking branch 'origin/llvm12' 2021-04-14 14:41:57 -07:00
stage2 stage2: entry point via std lib and proper updated file detection 2021-04-15 19:06:39 -07:00
standalone Add standalone test for interdep C archives 2021-04-13 13:32:59 +02:00
assemble_and_link.zig update std lib to new Target API 2020-02-28 14:51:54 -05:00
cli.zig test-cli: Remove temporary directory after tests 2021-03-17 10:27:41 +01:00
compare_output.zig Reduce use of deprecated IO types 2021-01-07 23:48:58 -08:00
compile_errors.zig Allow async in nosuspend scope 2021-02-16 23:43:36 -05:00
gen_h.zig run zig fmt on src/ and test/ 2020-10-31 12:21:49 +02:00
run_translated_c.zig translate-c: wrap switch statements in a while (true) loop 2021-04-13 11:45:03 -07:00
runtime_safety.zig Replace @TagType uses, mostly with std.meta.Tag 2021-01-30 22:26:44 +02:00
stack_traces.zig test-stack-traces: enable elf/dwarf platforms 2021-04-12 17:18:56 -04:00
standalone.zig Add standalone test for interdep C archives 2021-04-13 13:32:59 +02:00
tests.zig stage2: improvements aimed at std lib integration 2021-04-15 19:06:39 -07:00
translate_c.zig translate-c: wrap switch statements in a while (true) loop 2021-04-13 11:45:03 -07:00