zig/test/behavior
Veikka Tuominen 2e7d28dd0d Sema: replace uses of toUnsignedInt with toUnsignedIntAdvanced
During semantic analysis the value may be an unresolved lazy value
which makes using `toUnsignedInt` invalid.

Add assertions to detect similar issues in the future.

Closes #18624
2024-01-20 12:21:05 -08:00
..
conflicting_externs categorize behavior/bugs/<issueno>.zig tests 2024-01-06 16:49:41 -08:00
hasdecl
import
namespace_depends_on_compile_var
pub_enum
usingnamespace compiler_rt: fix arm hard-float f16 abi 2023-09-19 09:37:53 -07:00
abs.zig test: update behavior to silence 'var is never mutated' errors 2023-11-19 09:57:03 +00:00
align.zig test/behavior: replace all 'comptime expect' with 'comptime assert' 2024-01-15 20:55:01 +11:00
alignof.zig test/behavior: replace all 'comptime expect' with 'comptime assert' 2024-01-15 20:55:01 +11:00
array.zig test/behavior: replace all 'comptime expect' with 'comptime assert' 2024-01-15 20:55:01 +11:00
asm.zig test: update behavior to silence 'var is never mutated' errors 2023-11-19 09:57:03 +00:00
async_fn.zig test/behavior: replace all 'comptime expect' with 'comptime assert' 2024-01-15 20:55:01 +11:00
atomics.zig x86_64: implement more atomic ops 2023-12-03 10:22:06 -05:00
await_struct.zig test: update behavior to silence 'var is never mutated' errors 2023-11-19 09:57:03 +00:00
basic.zig test/behavior: replace all 'comptime expect' with 'comptime assert' 2024-01-15 20:55:01 +11:00
bit_shifting.zig categorize behavior/bugs/<issueno>.zig tests 2024-01-06 16:49:41 -08:00
bitcast.zig test/behavior: replace all 'comptime expect' with 'comptime assert' 2024-01-15 20:55:01 +11:00
bitreverse.zig test: update behavior to silence 'var is never mutated' errors 2023-11-19 09:57:03 +00:00
bool.zig categorize behavior/bugs/<issueno>.zig tests 2024-01-06 16:49:41 -08:00
builtin_functions_returning_void_or_noreturn.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
byteswap.zig test: update behavior to silence 'var is never mutated' errors 2023-11-19 09:57:03 +00:00
byval_arg_var.zig spirv: enable passing tests 2023-09-23 12:36:56 -07:00
c_char_signedness.zig spirv: disable new behavior tests that do not pass 2023-07-01 19:45:09 +02:00
call_tail.zig spirv: disable failing tests 2023-09-23 12:36:44 -07:00
call.zig test/behavior: replace all 'comptime expect' with 'comptime assert' 2024-01-15 20:55:01 +11:00
cast_int.zig test: update behavior to silence 'var is never mutated' errors 2023-11-19 09:57:03 +00:00
cast.zig return optional state to zirPtrCastNoDest 2024-01-19 21:25:05 +02:00
comptime_memory.zig test: update behavior to silence 'var is never mutated' errors 2023-11-19 09:57:03 +00:00
const_slice_child.zig spirv: update failing / passing tests 2023-10-15 20:08:18 +02:00
decltest.zig spirv: more passing tests 2023-05-20 17:30:22 +02:00
defer.zig spirv: update failing / passing tests 2023-10-15 20:08:18 +02:00
destructure.zig test: update behavior to silence 'var is never mutated' errors 2023-11-19 09:57:03 +00:00
duplicated_test_names.zig spirv: more passing tests 2023-05-20 17:30:22 +02:00
empty_file_level_struct.zig
empty_file_level_union.zig
empty_tuple_fields.zig
empty_union.zig test: update behavior to silence 'var is never mutated' errors 2023-11-19 09:57:03 +00:00
enum.zig test/behavior: replace all 'comptime expect' with 'comptime assert' 2024-01-15 20:55:01 +11:00
error.zig test/behavior: replace all 'comptime expect' with 'comptime assert' 2024-01-15 20:55:01 +11:00
eval.zig test/behavior: replace all 'comptime expect' with 'comptime assert' 2024-01-15 20:55:01 +11:00
export_builtin.zig coff: implement exporting anon decls 2023-10-29 18:55:58 +01:00
export_c_keywords.zig cbe: fix non-msvc externs and exports 2024-01-03 02:52:25 -05:00
export_keyword.zig split export behavior test into export_keyword and export_builtin 2023-10-27 12:45:04 -07:00
export_self_referential_type_info.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
extern_struct_zero_size_fields.zig test: update behavior to silence 'var is never mutated' errors 2023-11-19 09:57:03 +00:00
extern.zig Sema: fix @extern decls 2024-01-15 07:39:05 +01:00
field_parent_ptr.zig spirv: fieldParentPtr 2023-10-16 20:27:28 -04:00
file_to_embed.txt rename behavior test to better describe what it does 2023-10-23 17:28:10 -07:00
floatop.zig categorize behavior/bugs/<issueno>.zig tests 2024-01-06 16:49:41 -08:00
fn_delegation.zig spirv: more passing tests 2023-05-20 17:30:22 +02:00
fn_in_struct_in_comptime.zig test: update behavior to silence 'var is never mutated' errors 2023-11-19 09:57:03 +00:00
fn.zig do not enforce function parameters to be marked comptime if only called at comptime 2024-01-19 15:31:18 -08:00
for.zig categorize behavior/bugs/<issueno>.zig tests 2024-01-06 16:49:41 -08:00
generics.zig categorize behavior/bugs/<issueno>.zig tests 2024-01-06 16:49:41 -08:00
globals.zig categorize behavior/bugs/<issueno>.zig tests 2024-01-06 16:49:41 -08:00
hasdecl.zig categorize behavior/bugs/<issueno>.zig tests 2024-01-06 16:49:41 -08:00
hasfield.zig
if.zig categorize behavior/bugs/<issueno>.zig tests 2024-01-06 16:49:41 -08:00
import_c_keywords.zig cbe: fix non-msvc externs and exports 2024-01-03 02:52:25 -05:00
import.zig
incomplete_struct_param_tld.zig
inline_switch.zig test: update behavior to silence 'var is never mutated' errors 2023-11-19 09:57:03 +00:00
int128.zig x86_64: implement some todos 2023-12-03 10:24:03 -05:00
int_comparison_elision.zig categorize behavior/bugs/<issueno>.zig tests 2024-01-06 16:49:41 -08:00
int_div.zig test: update behavior to silence 'var is never mutated' errors 2023-11-19 09:57:03 +00:00
ir_block_deps.zig spirv: update failing / passing tests 2023-10-15 20:08:18 +02:00
lower_strlit_to_vector.zig spirv: update failing / passing tests 2023-10-15 20:08:18 +02:00
math.zig test/behavior: replace all 'comptime expect' with 'comptime assert' 2024-01-15 20:55:01 +11:00
maximum_minimum.zig test: update behavior to silence 'var is never mutated' errors 2023-11-19 09:57:03 +00:00
member_func.zig Zir: eliminate field_call_bind and field_call_bind_named 2023-05-20 12:27:48 -07:00
memcpy.zig Sema: ensure slice_ptr produces the correct type 2023-12-23 02:08:58 -05:00
memset.zig categorize behavior/bugs/<issueno>.zig tests 2024-01-06 16:49:41 -08:00
merge_error_sets.zig spirv: update failing / passing tests 2023-10-15 20:08:18 +02:00
muladd.zig test: update behavior to silence 'var is never mutated' errors 2023-11-19 09:57:03 +00:00
multiple_externs_with_conflicting_types.zig categorize behavior/bugs/<issueno>.zig tests 2024-01-06 16:49:41 -08:00
namespace_depends_on_compile_var.zig
nan.zig x86_64: fix compiler rt test failures 2023-10-29 07:20:36 -04:00
null.zig test: update behavior to silence 'var is never mutated' errors 2023-11-19 09:57:03 +00:00
optional.zig test/behavior: replace all 'comptime expect' with 'comptime assert' 2024-01-15 20:55:01 +11:00
packed_struct_explicit_backing_int.zig std.builtin.Endian: make the tags lower case 2023-10-31 21:37:35 -04:00
packed-struct.zig categorize behavior/bugs/<issueno>.zig tests 2024-01-06 16:49:41 -08:00
packed-union.zig categorize behavior/bugs/<issueno>.zig tests 2024-01-06 16:49:41 -08:00
pointers.zig test/behavior: replace all 'comptime expect' with 'comptime assert' 2024-01-15 20:55:01 +11:00
popcount.zig test: update behavior to silence 'var is never mutated' errors 2023-11-19 09:57:03 +00:00
prefetch.zig test: update behavior to silence 'var is never mutated' errors 2023-11-19 09:57:03 +00:00
ptrcast.zig Remove all usages of std.mem.copy and remove std.mem.set (#18143) 2023-11-29 16:03:02 -05:00
ptrfromint.zig test: update behavior to silence 'var is never mutated' errors 2023-11-19 09:57:03 +00:00
pub_enum.zig
ref_var_in_if_after_if_2nd_switch_prong.zig spirv: more passing tests 2023-05-20 17:30:22 +02:00
reflection.zig spirv: more passing tests 2023-05-20 17:30:22 +02:00
return_address.zig enable passing behavior tests 2023-05-31 18:04:33 +02:00
saturating_arithmetic.zig test: update behavior to silence 'var is never mutated' errors 2023-11-19 09:57:03 +00:00
select.zig test: update behavior to silence 'var is never mutated' errors 2023-11-19 09:57:03 +00:00
shuffle.zig test: update behavior to silence 'var is never mutated' errors 2023-11-19 09:57:03 +00:00
sizeof_and_typeof.zig Sema: replace uses of toUnsignedInt with toUnsignedIntAdvanced 2024-01-20 12:21:05 -08:00
slice_sentinel_comptime.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
slice.zig test/behavior: fix test type check for multi-ptr slice 2024-01-15 20:55:01 +11:00
src.zig spirv: update failing / passing tests 2023-10-15 20:08:18 +02:00
stage2_wasm_div.zig Replace @panic with unreachable, add test 2023-08-23 20:34:59 +01:00
string_literals.zig categorize behavior/bugs/<issueno>.zig tests 2024-01-06 16:49:41 -08:00
struct_contains_null_ptr_itself.zig test: update behavior to silence 'var is never mutated' errors 2023-11-19 09:57:03 +00:00
struct_contains_slice_of_itself.zig Revert "Revert "Merge pull request #17657 from Snektron/spirv-recursive-ptrs"" 2023-10-23 06:27:12 -04:00
struct.zig test/behavior: replace all 'comptime expect' with 'comptime assert' 2024-01-15 20:55:01 +11:00
switch_on_captured_error.zig test: add tests for switch_block_err_union 2024-01-09 14:42:12 +11:00
switch_prong_err_enum.zig spirv: update failing / passing tests 2023-10-15 20:08:18 +02:00
switch_prong_implicit_cast.zig spirv: update failing / passing tests 2023-10-15 20:08:18 +02:00
switch.zig test/behavior: replace all 'comptime expect' with 'comptime assert' 2024-01-15 20:55:01 +11:00
this.zig categorize behavior/bugs/<issueno>.zig tests 2024-01-06 16:49:41 -08:00
threadlocal.zig Remove all usages of std.mem.copy and remove std.mem.set (#18143) 2023-11-29 16:03:02 -05:00
translate_c_macros_not_utf8.h
translate_c_macros.h translate-c: skip blank macros when translating defines 2023-11-21 13:54:46 +00:00
translate_c_macros.zig translate-c: skip blank macros when translating defines 2023-11-21 13:54:46 +00:00
truncate.zig test/behavior: replace all 'comptime expect' with 'comptime assert' 2024-01-15 20:55:01 +11:00
try.zig categorize behavior/bugs/<issueno>.zig tests 2024-01-06 16:49:41 -08:00
tuple_declarations.zig test: update behavior to silence 'var is never mutated' errors 2023-11-19 09:57:03 +00:00
tuple.zig categorize behavior/bugs/<issueno>.zig tests 2024-01-06 16:49:41 -08:00
type_info_mul_linksection_addrspace_decls.zig Zir: add missing extra index for linksection_or_addspace 2023-11-25 11:39:37 +00:00
type_info_only_pub_decls.zig spirv: update failing / passing tests 2023-10-15 20:08:18 +02:00
type_info.zig test/behavior: replace all 'comptime expect' with 'comptime assert' 2024-01-15 20:55:01 +11:00
type.zig Fix failing type reifications 2024-01-07 16:27:50 +01:00
typename.zig spirv: update failing / passing tests 2023-10-15 20:08:18 +02:00
undefined.zig categorize behavior/bugs/<issueno>.zig tests 2024-01-06 16:49:41 -08:00
underscore.zig spirv: enable passing tests 2023-09-23 12:36:56 -07:00
union_with_members.zig enable passing behavior tests 2023-05-31 18:04:33 +02:00
union.zig test/behavior: replace all 'comptime expect' with 'comptime assert' 2024-01-15 20:55:01 +11:00
usingnamespace.zig categorize behavior/bugs/<issueno>.zig tests 2024-01-06 16:49:41 -08:00
var_args.zig test: update behavior to silence 'var is never mutated' errors 2023-11-19 09:57:03 +00:00
vector.zig test/behavior: replace all 'comptime expect' with 'comptime assert' 2024-01-15 20:55:01 +11:00
void.zig test: update behavior to silence 'var is never mutated' errors 2023-11-19 09:57:03 +00:00
wasm.zig test: update behavior to silence 'var is never mutated' errors 2023-11-19 09:57:03 +00:00
while.zig categorize behavior/bugs/<issueno>.zig tests 2024-01-06 16:49:41 -08:00
widening.zig test: update behavior to silence 'var is never mutated' errors 2023-11-19 09:57:03 +00:00
wrapping_arithmetic.zig all: replace comptime try with try comptime 2023-06-13 23:46:58 +06:00