rust/tests/compile-fail
2017-07-10 13:34:54 -07:00
..
alignment.rs add a test 2016-07-06 11:19:24 +02:00
assume.rs error on failed assumptions 2016-09-13 13:08:57 +02:00
bitop-beyond-alignment.rs add some compile-fail tests 2017-06-22 14:46:53 -07:00
cast_box_int_to_fn_ptr.rs Get rid of the integer allocation 2017-06-20 14:28:18 +02:00
cast_fn_ptr2.rs improve fn pointer signature check to allow some casts that should be permitted 2017-05-30 10:41:38 -07:00
cast_fn_ptr_unsafe2.rs update tests for new error message 2017-06-27 21:31:38 -04:00
cast_fn_ptr_unsafe.rs update tests for new error message 2017-06-27 21:31:38 -04:00
cast_fn_ptr.rs Rustup to rustc 1.17.0-nightly (be760566c 2017-02-28) 2017-03-02 13:11:33 +01:00
cast_int_to_fn_ptr.rs Get rid of the integer allocation 2017-06-20 14:28:18 +02:00
copy_nonoverlapping.rs check the assumptions made by the unchecked_ and copy_nonoverlapping intrinsics 2017-07-03 20:37:38 -07:00
ctlz_nonzero.rs add some compile-fail tests 2017-06-22 14:46:53 -07:00
cttz_nonzero.rs add some compile-fail tests 2017-06-22 14:46:53 -07:00
dangling_pointer_deref.rs
deallocate-bad-alignment.rs validate size and alignment on reallocate and deallocate 2017-07-03 16:47:58 -07:00
deallocate-bad-size.rs validate size and alignment on reallocate and deallocate 2017-07-03 16:47:58 -07:00
deallocate-twice.rs properly check for: double-free, use-after-reallocate 2017-07-03 16:12:11 -07:00
deref_fn_ptr.rs
div-by-zero-2.rs add test for div-by-zero with the operator (rather than the intrinsic) 2017-07-03 20:59:47 -07:00
div-by-zero.rs check the assumptions made by the unchecked_ and copy_nonoverlapping intrinsics 2017-07-03 20:37:38 -07:00
execute_memory.rs change the block and stmt position after a function call returns 2016-09-07 12:48:29 +02:00
fn_ptr_offset.rs add test for function pointer offsets 2017-06-21 21:54:42 -07:00
int_ptr_cast2.rs check alignment of pointers on Ref 2017-06-24 11:05:13 -07:00
int_ptr_cast.rs check alignment of pointers on Ref 2017-06-24 11:05:13 -07:00
invalid_bool.rs
invalid_enum_discriminant.rs there can never be too many tests 2016-06-23 09:36:37 +02:00
match_char.rs
memleak_rc.rs add test with an Rc cycle to create a memleak 2017-02-24 10:41:15 +01:00
memleak.rs add a test for the memory leak error 2017-02-24 10:41:15 +01:00
modifying_constants.rs freeze -> static 2017-02-07 20:28:54 +01:00
never_say_never.rs add a test for dereferencing a pointer to a ! 2017-01-12 09:41:36 +01:00
never_transmute_humans.rs fix ICE when transmuting inhabited types to uninhabited 2017-01-12 09:59:00 +01:00
never_transmute_void.rs also test transmutes to empty enums 2017-01-12 11:23:44 +01:00
null_pointer_deref.rs Get rid of the integer allocation 2017-06-20 14:28:18 +02:00
oom2.rs test suite now also passes on MIR-libstd 2017-05-30 10:41:38 -07:00
oom.rs test suite now also passes on MIR-libstd 2017-05-30 10:41:38 -07:00
out_of_bounds_ptr_1.rs check bounds when using offset intrinsic or MIR op 2017-06-05 14:27:26 -07:00
out_of_bounds_ptr_2.rs Error out when "primitive MIR math" (as opposed to unchecked intrinsics) overflows 2017-06-07 15:39:44 -07:00
out_of_bounds_read2.rs check bounds when using offset intrinsic or MIR op 2017-06-05 14:27:26 -07:00
out_of_bounds_read.rs check bounds when using offset intrinsic or MIR op 2017-06-05 14:27:26 -07:00
overflowing-lsh-neg.rs fix bitops being accidentally allowed on pointers from the same allocation 2017-06-05 17:17:16 -07:00
overflowing-rsh-2.rs catch overflows that are hidden by first casting the RHS to u32 2017-07-03 20:50:19 -07:00
overflowing-rsh.rs catch overflows that are hidden by first casting the RHS to u32 2017-07-03 20:50:19 -07:00
overflowing-unchecked-rsh.rs check the assumptions made by the unchecked_ and copy_nonoverlapping intrinsics 2017-07-03 20:37:38 -07:00
overwriting_part_of_relocation_makes_the_rest_undefined.rs
panic.rs update tests 2017-02-09 10:59:42 +01:00
pointer_byte_read_1.rs Simplify all the code 2017-06-27 13:36:41 +02:00
pointer_byte_read_2.rs test that we cannot observe the bytes representing a pointer 2017-06-05 14:23:35 -07:00
pointers_to_different_allocations_are_unorderable.rs permit offsetting a NULL-ptr by 0, to fix hashmap test 2017-06-22 13:41:13 -07:00
ptr_bitops.rs fix bitops being accidentally allowed on pointers from the same allocation 2017-06-05 17:17:16 -07:00
ptr_int_cast.rs handle ptr-int casts explicitly in cast.rs 2017-06-24 11:05:13 -07:00
ptr_offset_overflow.rs Error out when "primitive MIR math" (as opposed to unchecked intrinsics) overflows 2017-06-07 15:39:44 -07:00
reallocate-bad-alignment.rs simplify reallocate 2017-07-10 13:34:54 -07:00
reallocate-bad-size.rs validate size and alignment on reallocate and deallocate 2017-07-03 16:47:58 -07:00
reallocate-change-alloc.rs properly check for: double-free, use-after-reallocate 2017-07-03 16:12:11 -07:00
reference_to_packed.rs check alignment of pointers on Ref 2017-06-24 11:05:13 -07:00
repeat2.rs add a step counter that can be changed during interpretation 2016-11-18 10:38:07 +01:00
repeat.rs Make layout SizeOverflow test trigger on i686. 2016-12-16 23:57:46 -08:00
stack_limit.rs run test suite also against libstd with full MIR 2017-05-31 13:39:40 -07:00
static_memory_modification2.rs Freeze static memory of string constants. 2016-09-19 04:10:18 -06:00
static_memory_modification3.rs Freeze static memory of string constants. 2016-09-19 04:10:18 -06:00
static_memory_modification.rs Undo accidental test deletion in previous commit. 2016-09-13 20:17:52 -06:00
timeout.rs rustc now can use integer literals in attributes 2016-09-07 10:27:57 +02:00
transmute-pair-undef.rs fix test on i686 2017-07-03 16:16:05 -07:00
unaligned_ptr_cast.rs check alignment of pointers on Ref 2017-06-24 11:05:13 -07:00
wild_pointer_deref.rs Get rid of the integer allocation 2017-06-20 14:28:18 +02:00
zst2.rs Make zst compile-fail tests more readable 2017-06-24 12:46:35 +02:00
zst3.rs Make zst compile-fail tests more readable 2017-06-24 12:46:35 +02:00
zst.rs Remove the zst allocation 2017-06-23 12:55:49 +02:00