Skip to content

Instantly share code, notes, and snippets.

@perillo
Last active January 18, 2023 16:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save perillo/b46f94e6b1303e9940cfcf3a0ddf33bf to your computer and use it in GitHub Desktop.
Save perillo/b46f94e6b1303e9940cfcf3a0ddf33bf to your computer and use it in GitHub Desktop.

exe

exe|addWithOverflow_builtin
exe|assign_undefined
exe|cImport_builtin
exe|change_active_union_field
exe|cli_allocation
exe|comments
exe|float_mode_exe
exe|hello
exe|hello_again
exe|inline_assembly
exe|mutable_var
exe|print
exe|print_comptime-known_format
exe|string_literals
exe|struct_name
exe|testing_error_with_if
exe|testing_null_with_if
exe|undefined_active_union_field
exe|values
exe|verbose_cimport_flag
exe|wasi_args
exe|wasi_preopens

exe_build_err

exe_build_err|constant_identifier_cannot_change
exe_build_err|sentinel-terminated_pointer
exe_build_err|var_must_be_initialized

exe_err

exe_err|error_return_trace
exe_err|math_add
exe_err|runtime_divExact_remainder
exe_err|runtime_division_by_zero
exe_err|runtime_incorrect_pointer_alignment
exe_err|runtime_index_out_of_bounds
exe_err|runtime_invalid_cast
exe_err|runtime_invalid_cast_truncate
exe_err|runtime_invalid_enum_cast
exe_err|runtime_invalid_error_code
exe_err|runtime_invalid_error_set_cast
exe_err|runtime_invalid_null_pointer_cast
exe_err|runtime_overflow
exe_err|runtime_reaching_unreachable
exe_err|runtime_remainder_division_by_zero
exe_err|runtime_shlExact_overflow
exe_err|runtime_shrExact_overflow
exe_err|runtime_unwrap_error
exe_err|runtime_unwrap_null
exe_err|runtime_wrong_union_field_access
exe_err|stack_trace

lib

lib|math

obj

obj|enum_export
obj|export_any_symbol_name
obj|export_builtin
obj|export_builtin_equivalent_code
obj|float_mode_obj

obj_err

obj_err|enum_export_error

syntax

syntax|FloatMode
syntax|anonymous_struct_name
syntax|base64
syntax|build
syntax|build_c
syntax|build_executable
syntax|build_library
syntax|build_object
syntax|builtin
syntax|catch
syntax|catch_err_return
syntax|checking_null_in_zig
syntax|compile-time_duck_typing
syntax|compile_variables
syntax|compiler_generated_function
syntax|doc_comments
syntax|fibonacci_comptime_infinite_recursion
syntax|float_literals
syntax|float_special_values
syntax|generic_data_structure
syntax|identifiers
syntax|integer_literals
syntax|macro
syntax|mathtest
syntax|multiline_string_literals
syntax|not_atomic_cmpxchgStrong
syntax|null
syntax|optional_integer
syntax|poc_printValue_fn
syntax|poc_print_fn
syntax|runtime_vs_comptime
syntax|single_value_error_set
syntax|single_value_error_set_shortcut
syntax|tldoc_comments
syntax|try
syntax|zero_bit_types

test

test|error_union_parsing_u64
test|test_TypeOf_builtin
test|test_aligned_struct_fields
test|test_allocator
test|test_allowzero
test|test_anonymous_struct
test|test_anonymous_union
test|test_arrays
test|test_bitOffsetOf_offsetOf
test|test_call_builtin
test|test_coerce_error_subset_to_superset
test|test_coerce_large_to_small
test|test_coerce_optional_wrapped_error_union
test|test_coerce_optionals
test|test_coerce_slices_arrays_and_pointers
test|test_coerce_to_error_union
test|test_coerce_tuples_arrays
test|test_coerce_unions_enums
test|test_comptime_evaluation
test|test_comptime_max_with_bool
test|test_comptime_pointer_conversion
test|test_comptime_pointers
test|test_comptime_variables
test|test_container-level_comptime_expressions
test|test_container_level_variables
test|test_defer
test|test_defining_variadic_function
test|test_empty_block
test|test_enum_literals
test|test_enums
test|test_errdefer
test|test_errdefer_block
test|test_errdefer_loop
test|test_error_union
test|test_exhaustive_switch
test|test_fibonacci_recursion
test|test_field_builtin
test|test_fn_reflection
test|test_fn_type_inference
test|test_for
test|test_for_nested_break
test|test_functions
test|test_global_assembly
test|test_hasDecl_builtin
test|test_if
test|test_inferred_error_sets
test|test_inline_else
test|test_inline_for
test|test_inline_switch
test|test_inline_switch_union_tag
test|test_inline_while
test|test_integer_pointer_conversion
test|test_integer_widening
test|test_labeled_break
test|test_merging_error_sets
test|test_multidimensional_arrays
test|test_namespaced_container_level_variable
test|test_no_op_casts
test|test_noreturn
test|test_noreturn_from_exit
test|test_null_terminated_array
test|test_null_terminated_slice
test|test_null_terminated_slicing
test|test_optional_pointer
test|test_optional_type
test|test_overaligned_packed_struct
test|test_packed_struct_field_address
test|test_packed_structs
test|test_pass_by_reference_or_value
test|test_peer_type_resolution
test|test_pointer_arithmetic
test|test_pointer_casting
test|test_pointer_coerce_const_optional
test|test_pointer_to_non-byte_aligned_field
test|test_reduce_builtin
test|test_scopes
test|test_setEvalBranchQuota_builtin
test|test_shuffle_builtin
test|test_simple_union
test|test_single_item_pointer
test|test_slice_bounds
test|test_slices
test|test_splat_builtin
test|test_src_builtin
test|test_static_local_variable
test|test_string_literal_to_const_slice
test|test_struct_default_field_values
test|test_struct_result
test|test_structs
test|test_switch
test|test_switch_modify_tagged_union
test|test_switch_non-exhaustive
test|test_switch_tagged_union
test|test_tagName
test|test_tagged_union
test|test_this_builtin
test|test_tls
test|test_truncate_builtin
test|test_tuples
test|test_type_coercion
test|test_union_method
test|test_unreachable
test|test_usingnamespace
test|test_variable_alignment
test|test_variable_func_alignment
test|test_variadic_function
test|test_vector
test|test_void_ignored
test|test_void_in_hashmap
test|test_volatile
test|test_wasmMemoryGrow_builtin
test|test_while
test|test_while_break
test|test_while_continue
test|test_while_continue_expression
test|test_while_else
test|test_while_error_capture
test|test_while_nested_break
test|test_while_null_capture
test|test_without_compileLog_builtin
test|test_wraparound_semantics
test|testing_detect_test
test|testing_introduction
test|testing_namespace
test|testing_nested_container_tests
test|testing_skip

test_err

test_err|test_ambiguous_coercion
test_err|test_assertion_failure
test_err|test_blocks
test_err|test_coerce_error_superset_to_subset
test_err|test_compileLog_builtin
test_err|test_comptime_call_extern_function
test_err|test_comptime_divExact_remainder
test_err|test_comptime_division_by_zero
test_err|test_comptime_incorrect_pointer_alignment
test_err|test_comptime_index_out_of_bounds
test_err|test_comptime_invalid_cast
test_err|test_comptime_invalid_cast_truncate
test_err|test_comptime_invalid_enum_cast
test_err|test_comptime_invalid_error_code
test_err|test_comptime_invalid_error_set_cast
test_err|test_comptime_invalid_null_pointer_cast
test_err|test_comptime_mismatched_type
test_err|test_comptime_overflow
test_err|test_comptime_reaching_unreachable
test_err|test_comptime_remainder_division_by_zero
test_err|test_comptime_shlExact_overwlow
test_err|test_comptime_shrExact_overflow
test_err|test_comptime_unreachable
test_err|test_comptime_unwrap_error
test_err|test_comptime_unwrap_null
test_err|test_comptime_wrong_union_field_access
test_err|test_errdefer_loop_leak
test_err|test_errdefer_slip_ups
test_err|test_expression_ignored
test_err|test_fibonacci_comptime_overflow
test_err|test_fibonacci_comptime_unreachable
test_err|test_intCast_builtin
test_err|test_invalid_defer
test_err|test_misaligned_pointer
test_err|test_opaque
test_err|test_print_too_many_args
test_err|test_shadowing
test_err|test_string_literal_to_slice
test_err|test_undefined_behavior
test_err|test_unhandled_enumeration_value
test_err|test_unresolved_comptime_value
test_err|test_without_setEvalBranchQuota_builtin
test_err|test_wrong_union_access
test_err|testing_detect_leak
test_err|testing_failure

test_safety

test_safety|test_basic_slices
test_safety|test_incorrect_pointer_alignment
test_safety|test_sentinel_mismatch
test_safety|test_setRuntimeSafety_builtin

264 doctests

doctests missing the expected error

line: 1186: missing doctest error_str: test_err|testing_failure
line: 5054: missing doctest error_str: test_err|test_assertion_failure
line: 6283: missing doctest error_str: test_err|test_ambiguous_coercion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment