zig/test
Andrew Kelley 81d5104e22 stage2: implement global variables
* Sema: implement global variables
   - Improved global constants to stop needlessly creating a Var
     structure; they can just store the value directly.
   - This required making memory management a bit more sophisticated to
     detect when a Decl owns the Namespace associated with it, for the
     purposes of deinitialization.
 * Decl.name and Namespace decl table keys no longer directly
   reference ZIR; instead they have heap-duped names, so that deleted
   decls, which no longer have any ZIR to reference for their names, can
   be removed from the parent Namespace table.
   - In the future I would like to explore going a different direction
     with this, where the strings would still point to the ZIR however
     they would be removed from their owner Namespace objects during the
     update detection. The design principle here is that the existence
     of incremental compilation as a feature should not incur any cost
     for the use case when it is not used. In this example Decl names
     could simply point to ZIR string table memory, and it is only
     because of incremental compilation that we duplicate their names.
 * AstGen: implement threadlocal variables
 * CLI: call cleanExit after building a compilation so that in release
   modes we don't bother freeing memory or closing file descriptors,
   allowing the OS to do it more efficiently.
 * Avoid calling `freeDecl` in the linker for unreferenced Decl objects.
 * Fix CBE test case expecting the compile error to point to the wrong
   column.
2021-05-07 18:52:11 -07:00
..
behavior move behavior tests from test/stage1/ to test/ 2021-04-29 15:54:04 -07:00
src tests: Use {s} instead of {} when formatting strings 2021-01-02 17:12:57 -07:00
stage1/c_abi move behavior tests from test/stage1/ to test/ 2021-04-29 15:54:04 -07:00
stage2 stage2: implement global variables 2021-05-07 18:52:11 -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
behavior.zig move behavior tests from test/stage1/ to test/ 2021-04-29 15:54:04 -07: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 stage1: Use correct alignment for asyncCall frame 2021-04-25 20:41:49 +02: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: group LHS of array access if necessary 2021-04-20 11:33:01 +03:00
runtime_safety.zig stage1: Require a block after suspend 2021-04-24 10:25:43 +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 Merge remote-tracking branch 'origin/master' into stage2-whole-file-astgen 2021-04-24 10:44:41 -07:00
translate_c.zig translate-c: Fix casting of function pointers 2021-04-25 16:50:41 +02:00