0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/test/behavior
Andrew Kelley 9a6fa67cbc Sema: only do store_ptr tuple optimization for arrays
Check the big comment in the diff for more details.
Fixes default-initialization of structs from empty struct literals.
History 2022-03-15 19:21:58 -07:00
..
bugs stage2: Fix panic on initializing comptime fields in tuple 2022-03-15 17:01:16 -07:00
hasdecl move behavior tests from test/stage1/ to test/ 2021-04-29 15:54:04 -07:00
import move behavior tests from test/stage1/ to test/ 2021-04-29 15:54:04 -07:00
namespace_depends_on_compile_var move behavior tests from test/stage1/ to test/ 2021-04-29 15:54:04 -07:00
pub_enum move behavior tests from test/stage1/ to test/ 2021-04-29 15:54:04 -07:00
usingnamespace std: fix regressions from this branch 2021-09-01 17:54:07 -07:00
align.zig stage2 AArch64: enable mul for ints with <= 64 bits 2022-03-13 11:32:08 +01:00
alignof.zig x64: pass more behavior tests 2022-02-28 23:20:05 +01:00
array.zig stage2 AArch64: enable mul for ints with <= 64 bits 2022-03-13 11:32:08 +01:00
asm.zig migrate from std.Target.current to @import("builtin").target 2021-10-04 23:48:55 -07:00
async_fn.zig stage1, stage2: rename c_void to anyopaque (#10316) 2021-12-19 00:24:45 -05:00
atomics.zig Sema: implement @truncate for SIMD vectors 2022-03-15 15:09:48 -07:00
await_struct.zig std, src, doc, test: remove unused variables 2021-06-21 17:03:03 -07:00
basic.zig stage2: passing threadlocal tests for x86_64-linux 2022-03-11 00:04:42 -07:00
bit_shifting.zig stage2 AArch64: Enable behavior testing 2022-02-14 22:33:01 +01:00
bitcast.zig stage2 AArch64: enable mul for ints with <= 64 bits 2022-03-13 11:32:08 +01:00
bitreverse.zig CBE: implement popCount, byteSwap, bitReverse for ints <= 128 bits 2022-03-13 09:59:15 +00:00
bool.zig C backend: fix @boolToInt 2021-10-28 17:33:05 -07:00
byteswap.zig CBE: implement popCount, byteSwap, bitReverse for ints <= 128 bits 2022-03-13 09:59:15 +00:00
byval_arg_var.zig stage2 ARM: implement ret_load 2022-03-08 21:10:04 +01:00
call.zig stage2: implement builtin_call 2022-02-27 18:59:44 -05:00
cast.zig stage2: fixups for topolarity-comptime-memory-reinterp branch 2022-03-14 21:43:03 -07:00
cast_int.zig wasm: Implement float_to_int 2022-01-10 21:01:00 +01:00
comptime_memory.zig stage2: type system treats fn ptr and body separately 2022-01-24 21:47:53 -07:00
const_slice_child.zig Sema: implement @truncate for SIMD vectors 2022-03-15 15:09:48 -07:00
decltest.zig stage2: add decltests 2022-02-13 14:42:20 +02:00
defer.zig stage2 ARM: implement ret_load 2022-03-08 21:10:04 +01:00
enum.zig wasm: Enable passing behavior tests 2022-03-09 13:53:20 -07:00
error.zig Sema: always allow coercing error set to current inferred error set 2022-03-12 11:36:05 +02:00
eval.zig AstGen: add missing coercion for const locals 2022-03-15 16:41:10 -07:00
export.zig Sema: implement zirStructInit is_ref=true union 2022-03-10 20:00:07 +02:00
export_self_referential_type_info.zig stage2: fix mem{set,cpy} for non comptime mutable pointers 2022-03-08 11:23:38 +02:00
field_parent_ptr.zig wasm: Enable passing behavior tests 2022-03-09 13:53:20 -07:00
floatop.zig Sema: fix shl_sat with comptime rhs 2022-03-14 23:15:01 -07:00
fn.zig Sema: fix shl_sat with comptime rhs 2022-03-14 23:15:01 -07:00
fn_delegation.zig stage2 AArch64: Enable behavior testing 2022-02-14 22:33:01 +01:00
fn_in_struct_in_comptime.zig Merge remote-tracking branch 'origin/master' into stage2-whole-file-astgen 2021-05-08 14:45:21 -07:00
for.zig stage2: add debug info for locals in the LLVM backend 2022-03-13 03:41:31 -04:00
generics.zig stage2: add debug info for locals in the LLVM backend 2022-03-13 03:41:31 -04:00
hasdecl.zig Merge remote-tracking branch 'origin/master' into stage2-whole-file-astgen 2021-05-08 14:45:21 -07:00
hasfield.zig Sema: make @hasField support tuples too 2022-03-11 12:59:20 -07:00
if.zig stage2 AArch64: add more slice support 2022-03-05 11:31:51 +01:00
import.zig lint: duplicate import (#10519) 2022-01-07 00:06:06 -05:00
incomplete_struct_param_tld.zig stage2 ARM: implement ret_load 2022-03-08 21:10:04 +01:00
int128.zig remove zig_is_stage2 from @import("builtin") 2022-01-17 21:55:49 -07:00
int_div.zig add integer division tests 2022-02-19 14:24:03 +01:00
inttoptr.zig stage2 AArch64: add more slice support 2022-03-05 11:31:51 +01:00
ir_block_deps.zig x64: pass more behavior tests 2022-02-28 23:20:05 +01:00
math.zig Merge pull request #11143 from jmc-88/cbe 2022-03-14 18:23:00 -04:00
maximum_minimum.zig stage2: implement @minimum and @maximum, including vectors 2021-10-14 21:17:30 -07:00
member_func.zig Port more behavior tests 2022-02-22 21:57:42 +01:00
merge_error_sets.zig wasm: Enable passing behavior tests 2022-03-09 13:53:20 -07:00
muladd.zig disable failing @mulAdd test 2022-03-06 16:18:51 -07:00
namespace_depends_on_compile_var.zig x64: pass more behavior tests 2022-02-28 23:20:05 +01:00
null.zig wasm: Enable passing behavior tests 2022-03-09 13:53:20 -07:00
optional.zig stage2 llvm: Lower 0-bit field-ptr as ptr-to-void 2022-03-03 13:08:14 -07:00
pointers.zig stage2: sentinel array init must add sentinel to array value 2022-03-08 12:05:12 -08:00
popcount.zig CBE: split {clz,ctz,mod,popCount,byteSwap,bitReverse} by type 2022-03-14 19:43:31 +00:00
prefetch.zig stage1: implement @prefetch() builtin 2021-12-11 00:29:31 +01:00
ptrcast.zig stage2: fixups for topolarity-comptime-memory-reinterp branch 2022-03-14 21:43:03 -07:00
pub_enum.zig Merge remote-tracking branch 'origin/master' into stage2-whole-file-astgen 2021-05-08 14:45:21 -07:00
ref_var_in_if_after_if_2nd_switch_prong.zig Port more behavior tests 2022-02-22 21:57:42 +01:00
reflection.zig LLVM: add extra padding to structs and tuples sometimes 2022-03-01 18:24:00 -07:00
saturating_arithmetic.zig Sema: fix shl_sat with comptime rhs 2022-03-14 23:15:01 -07:00
select.zig Add @select 2021-07-26 20:05:48 -04:00
shuffle.zig Sema: implement @shuffle at comptime and for differing lengths 2022-03-11 14:25:15 +02:00
sizeof_and_typeof.zig stage2 AArch64: enable mul for ints with <= 64 bits 2022-03-13 11:32:08 +01:00
slice.zig stage2 AArch64: enable mul for ints with <= 64 bits 2022-03-13 11:32:08 +01:00
slice_sentinel_comptime.zig std, src, doc, test: remove unused variables 2021-06-21 17:03:03 -07:00
src.zig stage2: introduce anonymous struct literals 2022-03-01 23:46:57 -07:00
struct.zig Sema: only do store_ptr tuple optimization for arrays 2022-03-15 19:21:58 -07:00
struct_contains_null_ptr_itself.zig wasm: Enable passing behavior tests 2022-03-09 13:53:20 -07:00
struct_contains_slice_of_itself.zig Merge remote-tracking branch 'origin/master' into stage2-whole-file-astgen 2021-05-08 14:45:21 -07:00
switch.zig Sema: fix else branch check when switching on error set 2022-03-12 11:25:37 +02:00
switch_prong_err_enum.zig wasm: Enable passing behavior tests 2022-03-09 13:53:20 -07:00
switch_prong_implicit_cast.zig wasm: Enable passing behavior tests 2022-03-09 13:53:20 -07:00
this.zig stage2 AArch64: add more slice support 2022-03-05 11:31:51 +01:00
translate_c_macros.h translate-c: use nested scope for comma operator in macros 2022-03-08 20:38:51 +02:00
translate_c_macros.zig Sema: fix shl_sat with comptime rhs 2022-03-14 23:15:01 -07:00
truncate.zig Sema: implement @truncate for SIMD vectors 2022-03-15 15:09:48 -07:00
try.zig stage2 AArch64: add more slice support 2022-03-05 11:31:51 +01:00
tuple.zig stage2: rework Value storage of structs and arrays 2022-03-14 12:28:52 -07:00
type.zig Sema: fix shl_sat with comptime rhs 2022-03-14 23:15:01 -07:00
type_info.zig stage2: TypeInfo for func with generic return type should set null 2022-03-15 20:12:22 -04:00
typename.zig stage1: fix anon struct naming in certain cases 2021-07-28 18:17:11 -04:00
undefined.zig stage2 ARM: enable more behavior tests 2022-02-27 21:38:56 +01:00
underscore.zig x64: pass more behavior tests 2022-02-28 23:20:05 +01:00
union.zig Sema: only do store_ptr tuple optimization for arrays 2022-03-15 19:21:58 -07:00
union_with_members.zig stage2: add debug info for locals in the LLVM backend 2022-03-13 03:41:31 -04:00
usingnamespace.zig stage2 ARM: implement ret_load 2022-03-08 21:10:04 +01:00
var_args.zig stage2 AArch64: enable mul for ints with <= 64 bits 2022-03-13 11:32:08 +01:00
vector.zig migrate from std.Target.current to @import("builtin").target 2021-10-04 23:48:55 -07:00
void.zig stage2 ARM: enable more behavior tests 2022-02-27 21:38:56 +01:00
wasm.zig stage2: cleanups to wasm memory intrinsics 2022-03-03 18:31:55 -07:00
while.zig Sema: implement pointer to tuple to pointer to array coercion 2022-03-09 18:49:37 -07:00
widening.zig add behavior tests for f80 2022-01-28 11:45:04 -07:00
wrapping_arithmetic.zig stage1: fix saturating arithmetic producing incorrect results on type comptime_int, allow saturating left shift on type comptime int 2022-01-29 18:12:28 +02:00