zig/test/cases/safety
2022-07-23 15:40:11 +03:00
..
@alignCast misaligned.zig runtime safety tests only on the native target 2022-05-13 17:59:06 -07:00
@asyncCall with too small a frame.zig runtime safety tests only on the native target 2022-05-13 17:59:06 -07:00
@errSetCast error not present in destination.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
@floatToInt cannot fit - negative out of range.zig Sema: @floatToInt safety 2022-07-23 15:40:11 +03:00
@floatToInt cannot fit - negative to unsigned.zig Sema: @floatToInt safety 2022-07-23 15:40:11 +03:00
@floatToInt cannot fit - positive out of range.zig Sema: @floatToInt safety 2022-07-23 15:40:11 +03:00
@intCast to u0.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
@intToEnum - no matching tag value.zig runtime safety tests only on the native target 2022-05-13 17:59:06 -07:00
@intToPtr address zero to non-optional byte-aligned pointer.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
@intToPtr address zero to non-optional pointer.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
@tagName on corrupted enum value.zig runtime safety tests only on the native target 2022-05-13 17:59:06 -07:00
@tagName on corrupted union value.zig runtime safety tests only on the native target 2022-05-13 17:59:06 -07:00
array slice sentinel mismatch.zig runtime safety tests only on the native target 2022-05-13 17:59:06 -07:00
awaiting twice.zig runtime safety tests only on the native target 2022-05-13 17:59:06 -07:00
bad union field access.zig Sema: bad union field access safety 2022-07-23 15:40:11 +03:00
calling panic.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
cast []u8 to bigger slice of wrong size.zig runtime safety tests only on the native target 2022-05-13 17:59:06 -07:00
cast integer to global error and no code matches.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
empty slice with sentinel out of bounds.zig runtime safety tests only on the native target 2022-05-13 17:59:06 -07:00
error return trace across suspend points.zig runtime safety tests only on the native target 2022-05-13 17:59:06 -07:00
exact division failure - vectors.zig Sema: exact division safety 2022-07-23 15:40:11 +03:00
exact division failure.zig Sema: exact division safety 2022-07-23 15:40:11 +03:00
integer addition overflow.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
integer division by zero - vectors.zig Sema: divide by zero safety 2022-07-23 15:40:11 +03:00
integer division by zero.zig Sema: divide by zero safety 2022-07-23 15:40:11 +03:00
integer multiplication overflow.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
integer negation overflow.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
integer subtraction overflow.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
intToPtr with misaligned address.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
invalid resume of async function.zig runtime safety tests only on the native target 2022-05-13 17:59:06 -07:00
nosuspend function call, callee suspends.zig runtime safety tests only on the native target 2022-05-13 17:59:06 -07:00
optional unwrap operator on C pointer.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
optional unwrap operator on null pointer.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
out of bounds slice access.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
pointer casting null to non-optional pointer.zig runtime safety tests only on the native target 2022-05-13 17:59:06 -07:00
pointer slice sentinel mismatch.zig runtime safety tests only on the native target 2022-05-13 17:59:06 -07:00
remainder division by negative number.zig Sema: divide by zero safety 2022-07-23 15:40:11 +03:00
resuming a function which is awaiting a call.zig runtime safety tests only on the native target 2022-05-13 17:59:06 -07:00
resuming a function which is awaiting a frame.zig runtime safety tests only on the native target 2022-05-13 17:59:06 -07:00
resuming a non-suspended function which has been suspended and resumed.zig runtime safety tests only on the native target 2022-05-13 17:59:06 -07:00
resuming a non-suspended function which never been suspended.zig runtime safety tests only on the native target 2022-05-13 17:59:06 -07:00
shift left by huge amount.zig runtime safety tests only on the native target 2022-05-13 17:59:06 -07:00
shift right by huge amount.zig runtime safety tests only on the native target 2022-05-13 17:59:06 -07:00
signed integer division overflow - vectors.zig runtime safety tests only on the native target 2022-05-13 17:59:06 -07:00
signed integer division overflow.zig runtime safety tests only on the native target 2022-05-13 17:59:06 -07:00
signed integer not fitting in cast to unsigned integer - widening.zig Sema: cast negative to unsigned safety 2022-07-23 15:40:11 +03:00
signed integer not fitting in cast to unsigned integer.zig Sema: cast negative to unsigned safety 2022-07-23 15:40:11 +03:00
signed shift left overflow.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
signed shift right overflow.zig Sema: implement shr_exact runtime safety 2022-07-23 15:40:11 +03:00
signed-unsigned vector cast.zig Sema: cast negative to unsigned safety 2022-07-23 15:40:11 +03:00
slice sentinel mismatch - floats.zig runtime safety tests only on the native target 2022-05-13 17:59:06 -07:00
slice sentinel mismatch - optional pointers.zig runtime safety tests only on the native target 2022-05-13 17:59:06 -07:00
slice slice sentinel mismatch.zig runtime safety tests only on the native target 2022-05-13 17:59:06 -07:00
slice with sentinel out of bounds.zig runtime safety tests only on the native target 2022-05-13 17:59:06 -07:00
slicing null C pointer.zig runtime safety tests only on the native target 2022-05-13 17:59:06 -07:00
switch on corrupted enum value.zig runtime safety tests only on the native target 2022-05-13 17:59:06 -07:00
switch on corrupted union value.zig runtime safety tests only on the native target 2022-05-13 17:59:06 -07:00
truncating vector cast.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
unreachable.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
unsigned integer not fitting in cast to signed integer - same bit count.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
unsigned shift left overflow.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
unsigned shift right overflow.zig Sema: implement shr_exact runtime safety 2022-07-23 15:40:11 +03:00
unsigned-signed vector cast.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
unwrap error.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
value does not fit in shortening cast - u0.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
value does not fit in shortening cast.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
vector integer addition overflow.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
vector integer multiplication overflow.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
vector integer negation overflow.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
vector integer subtraction overflow.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00