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
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
byteswap.zig test: update behavior to silence 'var is never mutated' errors 2023-11-19 09:57:03 +00:00
byval_arg_var.zig
c_char_signedness.zig
call_tail.zig
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
decltest.zig
defer.zig
destructure.zig test: update behavior to silence 'var is never mutated' errors 2023-11-19 09:57:03 +00:00
duplicated_test_names.zig
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
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
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
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
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
int128.zig x86_64: implement some todos 2023-12-03 10:24:03 -05:00
ir_block_deps.zig
lower_strlit_to_vector.zig
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
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
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
reflection.zig
return_address.zig
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
slice.zig test/behavior: fix test type check for multi-ptr slice 2024-01-15 20:55:01 +11:00
src.zig
stage2_wasm_div.zig
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
switch_prong_implicit_cast.zig
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
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
undefined.zig categorize behavior/bugs/<issueno>.zig tests 2024-01-06 16:49:41 -08:00
underscore.zig
union_with_members.zig
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