zig/test
Andrew Kelley 3f5ca3920a AstGen: properly restore previous state after temporary changes
Before this, if a compile error occurred, it would cause the previous
value for e.g. the function scope to not get reset. If the AstGen
process continued, it would result in a violation of the data
guarantees that it relies on.

This commit takes advantage of defer to ensure the previous value is
always reset, even in the case of an error.

Closes #8920
2021-05-28 17:29:56 -07:00
..
behavior stage1: Fix for atomicrmw xchg on fp types 2021-05-28 19:18:42 -04:00
src tests: Use {s} instead of {} when formatting strings 2021-01-02 17:12:57 -07:00
stage1/c_abi stage1: Widen non byte-sized atomic loads/stores 2021-05-14 15:16:24 -04:00
stage2 AstGen: properly restore previous state after temporary changes 2021-05-28 17:29:56 -07:00
standalone add a standalone for zig as a c/c++ compiler 2021-05-25 00:42:31 +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 std: @import("builtin").StackTrace -> std.builtin.StackTrace 2021-05-17 14:36:51 -07:00
compare_output.zig Reduce use of deprecated IO types 2021-01-07 23:48:58 -08:00
compile_errors.zig update langref, compile-error tests, safety tests 2021-05-17 15:25:27 -07: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: add support for __cleanup__ attribute 2021-05-19 12:12:18 +03:00
runtime_safety.zig update langref, compile-error tests, safety tests 2021-05-17 15:25:27 -07:00
stack_traces.zig overhaul elf csu (c-runtime startup) logic 2021-05-23 15:38:57 -04:00
standalone.zig add a standalone for zig as a c/c++ compiler 2021-05-25 00:42:31 +02:00
tests.zig tests: disable i386-linux-gnu -lc target due to CI failures 2021-05-28 16:31:09 -07:00
translate_c.zig translate-c: Translate FnDecl's that appear within functions 2021-05-23 15:42:36 +03:00