0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/test
Andrew Kelley fcd4efd8ec Sema: introduce laziness to @sizeOf
Motivation: the behavior test that is now passing.

The main change in this commit is introducing `Type.abiSizeAdvanced`,
`Value.Tag.lazy_size`, and adjusting `Sema.zirSizeOf` to take advantage
of these.

However, the bulk of lines changed in this commit ended up being moving
logic from value.zig and type.zig into Sema.zig. This logic had no
business being in Type/Value as it was only called from a Sema context,
and we need access to the Sema context for error reporting when a lazy
Value is resolved.

Also worth mentioning is that I bumped up the comptime `@floatToInt`
implementation from using f64 to f128.
History 2022-05-20 02:47:20 -07:00
..
behavior Sema: introduce laziness to @sizeOf 2022-05-20 02:47:20 -07:00
cases arm: disable recursive fibonacci 2022-05-16 13:55:26 -07:00
src std lib API deprecations for the upcoming 0.9.0 release 2021-11-30 00:13:07 -07:00
stage1/c_abi C ABI: these tests are not passing yet on Windows 2022-02-08 21:15:00 -07:00
stage2 test: migrate llvm incremental tests 2022-04-28 18:35:01 +02:00
standalone reduce the scope of this branch 2022-05-10 17:31:54 -07:00
assemble_and_link.zig migrate from std.Target.current to @import("builtin").target 2021-10-04 23:48:55 -07:00
behavior.zig test: recursively walk dir with tests 2022-04-28 18:35:01 +02:00
cases.zig test: migrate stage1 compile error tests to updated test manifest 2022-04-28 18:35:01 +02:00
cli.zig Full response file (*.rsp) support 2022-01-30 21:27:52 +02:00
compare_output.zig Full response file (*.rsp) support 2022-01-30 21:27:52 +02:00
compile_errors.zig test: migrate stage1 compile error tests to updated test manifest 2022-04-28 18:35:01 +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: use nested scope for comma operator in macros 2022-03-08 20:38:51 +02:00
stack_traces.zig overhaul elf csu (c-runtime startup) logic 2021-05-23 15:38:57 -04:00
standalone.zig stdlib: escape backslashes and double quotes in Builder response file 2022-05-09 18:42:42 +03:00
tests.zig migrate runtime safety tests to the new test harness 2022-05-13 14:03:20 -07:00
translate_c.zig translate-c: improve error messages when expecting specific tokens 2022-01-17 17:16:48 +02:00