rust/tests/run-pass
Ralf Jung 668491a892 Work on making validation test pass again
Turns out that tracking write locks by their lifetime is not precise enough,
but for now, we don't have an alternative.  Also, we need to force_allocate
what we acquire or else the memory will not be in the right state.
2017-08-09 15:49:47 -07:00
..
auxiliary Revert "Revert "rustup to rustc 1.15.0-dev (ace092f56 2016-12-13)"" 2016-12-16 17:10:16 -08:00
arrays.rs
associated-const.rs update for latest nightly 2017-07-10 13:57:18 -07:00
assume_bug.rs ensure that integers cast to pointers will never point at a valid alloc, not even the zst alloc 2016-11-10 19:20:11 +01:00
atomic-access-bool.rs Implement more atomic intrinsics 2017-03-14 13:05:51 +01:00
atomic-compare_exchange.rs Implement more atomic intrinsics 2017-03-14 13:05:51 +01:00
aux_test.rs update compiletest and remove obsolete comment 2017-06-20 07:08:29 +09:00
bad_substs.rs Add regression test for bad substs 2017-03-24 09:03:19 +01:00
binops.rs don't print in the binop tests 2016-11-15 15:24:22 +01:00
bools.rs
box_box_trait.rs properly extract the inner type in a drop impl 2017-02-09 19:08:08 +01:00
c_enums.rs
call_drop_on_array_elements.rs Implement Offset like the other binary operators, share code with the intrinsic 2017-06-05 14:19:10 -07:00
call_drop_on_fat_ptr_array_elements.rs run drop on array elements 2016-11-04 17:34:33 +01:00
call_drop_on_zst_array_elements.rs remove our array drop glue and use rustc's instead; implement the new Offset and SizeOf operators 2017-06-05 10:06:40 -07:00
call_drop_through_owned_slice.rs call drop for all elements of an owned slice 2016-11-04 16:51:43 +01:00
call_drop_through_trait_object_rc.rs fix the block processing for the drop_in_place intrinsic 2016-11-04 17:55:06 +01:00
call_drop_through_trait_object.rs generate a drop method pointer in the vtable and process it 2016-11-04 16:38:04 +01:00
calls.rs
cast_fn_ptr_unsafe.rs
cast_fn_ptr.rs improve fn pointer signature check to allow some casts that should be permitted 2017-05-30 10:41:38 -07:00
cast-rfc0401-vtable-kinds.rs more hacks to make test cases pass 2017-07-25 17:31:40 -07:00
char.rs
closure-drop.rs Merge move_fn_closure run-passtest into closure-drop 2017-02-24 10:42:11 +01:00
closures.rs
const-vec-of-fns.rs fix static mut accidental dealloc or freeze 2017-02-07 19:20:16 +01:00
constants.rs
deriving-associated-types.rs fix enum variants with multiple fields 2016-09-30 10:45:52 +02:00
drop_empty_slice.rs enable a test that was accidentally left disabled 2017-06-11 21:16:05 -07:00
dst-field-align.rs add the full test from rust 2017-02-09 18:03:21 +01:00
dst-irrefutable-bind.rs
dst-raw.rs
dst-struct-sole.rs
dst-struct.rs refactor away get_fat_ptr 2016-09-23 15:48:23 +02:00
enum-nullable-const-null-with-fields.rs allow zsts in the zero case of a nullable pointer optimized enum 2016-11-15 16:15:17 +01:00
enums.rs fix enum variants with multiple fields 2016-09-30 10:45:52 +02:00
float_fast_math.rs Implement the fast float math intrinsics. 2017-02-10 05:58:34 -08:00
floats.rs
fn_item_as_closure_trait_object.rs fix turning function items into closure trait objects 2017-02-07 11:04:46 +01:00
fn_item_with_args_as_closure_trait_object.rs fix turning function items into closure trait objects 2017-02-07 11:04:46 +01:00
fn_item_with_multiple_args_as_closure_trait_object.rs fix turning function items into closure trait objects 2017-02-07 11:04:46 +01:00
fn_ptr_as_closure_trait_object.rs cleanup buggy closure dispatch code 2017-02-07 14:22:20 +01:00
format.rs add a test for output string formatting 2017-05-30 14:02:20 -07:00
function_pointers.rs
hello.rs test suite now also passes on MIR-libstd 2017-05-30 10:41:38 -07:00
intrinsics-integer.rs implement _nonzero intrinsics 2017-06-22 14:46:53 -07:00
intrinsics-math.rs Implement more float intrinsics 2017-03-14 12:35:38 +01:00
intrinsics.rs
ints.rs
issue-3794.rs Thinify the fat pointer on virtual function calls 2017-03-23 18:32:57 +01:00
issue-5917.rs silence some style warning 2017-02-08 15:38:48 +01:00
issue-15063.rs fix drop impls for clike enums 2017-02-07 17:41:30 +01:00
issue-15523-big.rs 1 > -1 2017-02-09 09:43:45 +01:00
issue-17877.rs implement slice patterns 2016-09-28 18:22:09 +02:00
issue-20575.rs Add regression test for single field by val tuples 2017-03-23 16:13:01 +01:00
issue-23261.rs
issue-26709.rs fix a bug in drop code of structs with unsized fields 2017-02-14 14:26:47 +01:00
issue-29746.rs Rustc reorders fields, but miri expects them in source order 2017-08-04 13:43:17 +02:00
issue-30530.rs implement fn item -> trait object conversion 2016-11-15 16:32:21 +01:00
issue-31267-additional.rs update for latest nightly 2017-07-10 13:57:18 -07:00
issue-33387.rs implement Arc<T> -> Arc<Trait> unsizing 2016-09-27 18:01:33 +02:00
issue-35815.rs fix a failing test 2017-02-09 13:00:38 +01:00
issue-36278-prefix-nesting.rs
issue-miri-184.rs fix issue 184 by marking the destination as a packed struct 2017-06-06 09:49:34 -04:00
iter_slice.rs Add some more tests involving Offset/arith_offset and ZST pointers 2017-06-05 15:19:07 -07:00
last-use-in-cap-clause.rs merge closures and function and implement some closure vtable cases 2016-11-15 17:19:37 +01:00
loops.rs
main_fn.rs
many_shr_bor.rs Re-do memory locking (again). Now with proper support for multiple independent shared borrows of the same mutable reference. 2017-08-07 12:57:32 -07:00
match_slice.rs fix matching on chars 2016-09-27 11:10:25 +02:00
mir_coercions.rs cleanup buggy closure dispatch code 2017-02-07 14:22:20 +01:00
mir_fat_ptr.rs
miri-issue-133.rs Add test for #133. 2017-02-10 08:00:28 -08:00
move-arg-3-unique.rs deallocate all locals on function exit and transitively freeze constants through pointers 2016-11-18 10:05:55 +01:00
move-undef-primval.rs Add test for #95. 2016-12-21 17:26:52 -08:00
multi_arg_closure.rs cleanup buggy closure dispatch code 2017-02-07 14:22:20 +01:00
negative_discriminant.rs Read discriminant as a signed integer if specified by layout. 2016-11-05 15:41:19 +00:00
non_capture_closure_to_fn_ptr.rs closure_to_fn_coercion has been stabilized 2017-05-30 09:27:50 -04:00
observed_local_mut.rs Add test for 39bb1254d. 2016-10-18 21:45:11 -06:00
option_box_transmute_ptr.rs remove memory leak from run-pass test 2017-02-24 10:41:15 +01:00
option_eq.rs
overloaded-calls-simple.rs
packed_static.rs Implement packed statics 2017-08-08 17:09:26 +02:00
packed_struct.rs Work on making validation test pass again 2017-08-09 15:49:47 -07:00
pointers.rs
products.rs
ptr_arith_offset_overflow.rs check for overflow when doing pointer arithmetic 2017-06-05 14:23:35 -07:00
ptr_arith_offset.rs fix arith_offset not taking the size of the type into account; test for offset 2017-06-05 14:23:35 -07:00
ptr_int_casts.rs fix casting integers to pointers 2017-07-21 20:02:48 -07:00
ptr_offset.rs fix arith_offset not taking the size of the type into account; test for offset 2017-06-05 14:23:35 -07:00
rc.rs make test suite MIR validation aware. run-pass passes with and without fullmir, if optimizations are disabled! 2017-08-03 18:13:22 -07:00
recursive_static.rs make test suite MIR validation aware. run-pass passes with and without fullmir, if optimizations are disabled! 2017-08-03 18:13:22 -07:00
ref-invalid-ptr.rs Test that &* of a dangling (and even unaligned) ptr is okay 2017-07-25 17:02:57 -07:00
regions-lifetime-nonfree-late-bound.rs implement drop for NonZero optimized enums 2016-11-04 09:34:54 +01:00
rfc1623.rs Fix warnings in unit test 2017-03-14 11:14:53 +01:00
rust-lang-org.rs fix matching on chars 2016-09-27 11:10:25 +02:00
send-is-not-static-par-for.rs make test suite MIR validation aware. run-pass passes with and without fullmir, if optimizations are disabled! 2017-08-03 18:13:22 -07:00
sendable-class.rs add more atomic intrinsics 2016-11-15 15:19:38 +01:00
simd-intrinsic-generic-elements.rs fix creation of simd types 2016-11-15 15:23:19 +01:00
slice-of-zero-size-elements.rs Use PrimVal instead of Pointer where applicable 2017-06-20 14:28:19 +02:00
small_enum_size_bug.rs fix null optimizations for smaller than pointer enums 2016-11-11 13:10:47 +01:00
specialization.rs
static_memory_modification.rs
static_mut.rs fix static mut accidental dealloc or freeze 2017-02-07 19:20:16 +01:00
std.rs make test suite MIR validation aware. run-pass passes with and without fullmir, if optimizations are disabled! 2017-08-03 18:13:22 -07:00
strings.rs
sums.rs This test appears to work on 32-bit now. 2016-12-17 01:52:26 -08:00
tag-align-dyn-u64.rs permit bit-anding in pointer values below the alignment 2017-06-22 14:46:53 -07:00
thread-local.rs add test for function pointer offsets 2017-06-21 21:54:42 -07:00
too-large-primval-write-problem.rs Add regression test for write_primval bug. 2016-12-17 01:34:19 -08:00
traits.rs enable test code that passes just fine 2017-07-19 11:38:15 -07:00
trivial.rs
try-operator-custom.rs
tuple_like_enum_variant_constructor_pointer_opt.rs allow using tuple variant names as function handles in presence of NonZero optimizations 2017-01-23 12:56:40 +01:00
tuple_like_enum_variant_constructor_struct_pointer_opt.rs correctly implement pointers to enum variant constructors 2017-01-28 15:46:46 +01:00
tuple_like_enum_variant_constructor.rs allow using tuple variant names as function handles 2017-01-23 12:56:40 +01:00
tuple_like_struct_constructor.rs allow the use of tuple struct constructors as functions 2017-01-12 08:52:22 +01:00
union-overwrite.rs Fix unions 2017-06-20 14:28:18 +02:00
union.rs Fix some clippy warnings 2017-06-12 13:56:29 +02:00
unique-send.rs allow zsts in the zero case of a nullable pointer optimized enum 2016-11-15 16:15:17 +01:00
vec-matching-fold.rs implement slice patterns 2016-09-28 18:22:09 +02:00
write-bytes.rs add write_bytes() test for a larger-than-u128 struct 2017-03-13 20:33:23 -04:00
zero-sized-binary-heap-push.rs Use PrimVal instead of Pointer where applicable 2017-06-20 14:28:19 +02:00
zst_box.rs sanity check that boxes of zsts don't deallocate the zst allocation 2016-11-03 16:01:14 +01:00
zst_variant_drop.rs drop zst fields of null pointer optimized structs and enums 2017-02-24 11:04:13 +01:00
zst.rs Remove the zst allocation 2017-06-23 12:55:49 +02:00