zig/test/behavior
Mitchell Hashimoto a36f4ee290 stage2: able to slice to sentinel index at comptime
The runtime behavior allowed this in both stage1 and stage2, but stage1
fails with index out of bounds during comptime. This behavior makes
sense to support, and comptime behavior should match runtime behavior. I
implement this fix only in stage2.
2022-03-23 17:08:08 -04:00
..
bugs behavior tests: disable failing stage1 test 2022-03-23 14:06:07 -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: Correctly align decls for comptime allocs 2022-03-19 19:41:23 -04:00
alignof.zig x64: pass more behavior tests 2022-02-28 23:20:05 +01:00
array.zig stage2: enable some passing array & vector tests 2022-03-23 16:39:29 -04:00
asm.zig migrate from std.Target.current to @import("builtin").target 2021-10-04 23:48:55 -07:00
async_fn.zig behavior tests: disable failing stage1 test 2022-03-23 14:06:07 -07:00
atomics.zig Sema: implement @truncate for SIMD vectors 2022-03-15 15:09:48 -07:00
await_struct.zig behavior tests: disable failing stage1 test 2022-03-23 14:06:07 -07:00
basic.zig stage2: x86_64: update passing tests after implementing ptr_elem_val 2022-03-21 20:13:27 +00:00
bit_shifting.zig stage2 AArch64: Enable behavior testing 2022-02-14 22:33:01 +01:00
bitcast.zig stage2 ARM: genSetStack for stack_argument_offset 2022-03-16 20:19:58 +01:00
bitreverse.zig stage2: implement @bitReverse for vectors 2022-03-18 16:28:38 +01:00
bool.zig C backend: fix @boolToInt 2021-10-28 17:33:05 -07:00
byteswap.zig Avoid index out of bounds for one-valued types in zirValidateArrayInit 2022-03-17 18:00:48 -07: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: out of bounds error for slicing 2022-03-21 22:10:34 -04:00
cast_int.zig organize behavior tests 2022-03-18 15:02:52 -07:00
comptime_memory.zig stage2: add test for fixed issue 2022-03-21 15:05:21 +02: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 stage2 CBE: Improve support for unions and error sets 2022-03-23 16:29:38 -04:00
eval.zig behavior tests: disable failing stage1 test 2022-03-23 14:06:07 -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 stage2 ARM: implement addwrap, subwrap, mulwrap 2022-03-16 20:20:07 +01: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 CBE: enable more tests that are currently passing 2022-03-17 11:39:56 -07:00
generics.zig CBE: enable more tests that are currently passing 2022-03-17 11:39:56 -07: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 organize behavior tests 2022-03-18 15:02:52 -07:00
int_div.zig CBE: implement mod, divFloor, divTrunc 2022-03-19 21:01:36 -04: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 stage2: enable some passing array & vector tests 2022-03-23 16:39:29 -04:00
maximum_minimum.zig organize behavior tests 2022-03-18 15:02:52 -07:00
member_func.zig Port more behavior tests 2022-02-22 21:57:42 +01:00
merge_error_sets.zig CBE: enable more tests that are currently passing 2022-03-17 11:39:56 -07:00
muladd.zig remove unnecessary TODO comment 2022-03-16 20:35:41 -07:00
namespace_depends_on_compile_var.zig CBE: enable more tests that are currently passing 2022-03-17 11:39:56 -07:00
null.zig CBE: enable more tests that are currently passing 2022-03-17 11:39:56 -07:00
optional.zig stage2 ARM: implement comparison of optional pointers 2022-03-22 20:16:05 -07:00
pointers.zig CBE: enable more passing tests (#11258) 2022-03-22 23:24:36 -04:00
popcount.zig wasm: Implement @popCount 2022-03-21 22:01:34 -04:00
prefetch.zig stage1: implement @prefetch() builtin 2021-12-11 00:29:31 +01:00
ptrcast.zig stage2 CBE: Improve support for unions and error sets 2022-03-23 16:29:38 -04: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 organize behavior tests 2022-03-18 15:02:52 -07:00
select.zig behavior tests: disable failing stage1 test 2022-03-23 14:06:07 -07:00
shuffle.zig organize behavior tests 2022-03-18 15:02:52 -07:00
sizeof_and_typeof.zig stage2 ARM: genSetStack for stack_argument_offset 2022-03-16 20:19:58 +01:00
slice.zig stage2: able to slice to sentinel index at comptime 2022-03-23 17:08:08 -04: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 AstGen: always add dbg_block_end before last instruction 2022-03-19 11:20:38 +02:00
struct_contains_null_ptr_itself.zig stage2 ARM: genSetStack for stack_argument_offset 2022-03-16 20:19:58 +01:00
struct_contains_slice_of_itself.zig Sema: introduce a mechanism in Value to resolve types 2022-03-22 15:45:59 -07:00
switch.zig Sema: implement zirSwitchCaptureElse for error sets 2022-03-19 15:49:27 +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 organize behavior tests 2022-03-18 15:02:52 -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 wasm: Enable passing tests 2022-03-19 20:56:04 +01:00
type.zig stage2 ARM: implement addwrap, subwrap, mulwrap 2022-03-16 20:20:07 +01:00
type_info.zig CBE: enable more tests that are currently passing 2022-03-17 11:39:56 -07:00
typename.zig stage2: improve @typeName 2022-03-18 00:12:22 -07:00
undefined.zig stage2: improve @typeName 2022-03-18 00:12:22 -07:00
underscore.zig x64: pass more behavior tests 2022-02-28 23:20:05 +01:00
union.zig stage2 CBE: Improve support for unions and error sets 2022-03-23 16:29:38 -04:00
union_with_members.zig organize behavior tests 2022-03-18 15:02:52 -07:00
usingnamespace.zig stage2 ARM: implement ret_load 2022-03-08 21:10:04 +01:00
var_args.zig CBE: enable more tests that are currently passing 2022-03-17 11:39:56 -07:00
vector.zig behavior tests: alter test coverage for vectors 2022-03-21 17:03:24 -07:00
void.zig stage2 ARM: implement addwrap, subwrap, mulwrap 2022-03-16 20:20:07 +01:00
wasm.zig stage2: cleanups to wasm memory intrinsics 2022-03-03 18:31:55 -07:00
while.zig stage2: add debug info for payload captures 2022-03-19 11:20:38 +02:00
widening.zig organize behavior tests 2022-03-18 15:02:52 -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