rust/tests/compile-fail
bors 45113eb6a4 Auto merge of #1325 - RalfJung:float_to_int_unchecked, r=RalfJung
implement float_to_int_unchecked

@hanna-kruppe would be great if you could have a look at this.

`float.rs` tests legal casts. `test_cast` checks that both `as` casts and unchecked casts work (i.e., these are not saturating). The `compile-fail` tests should ensure that illegal casts via the intrinsic are detected as such.

Fixes https://github.com/rust-lang/miri/issues/1264
2020-04-18 08:13:24 +00:00
..
alloc organize compile-fail tests in folders 2020-04-11 11:36:55 +02:00
dangling_pointers some UB gets masked by optimizations 2020-04-18 09:15:59 +02:00
function_pointers organize compile-fail tests in folders 2020-04-11 11:36:55 +02:00
intrinsics Auto merge of #1325 - RalfJung:float_to_int_unchecked, r=RalfJung 2020-04-18 08:13:24 +00:00
panic platform -> target 2020-03-22 08:55:39 +01:00
stacked_borrows make sure we find some things without validation or stacked borrows, respectively 2020-04-14 10:23:47 +02:00
sync organize compile-fail tests in folders 2020-04-11 11:36:55 +02:00
unaligned_pointers some UB gets masked by optimizations 2020-04-18 09:15:59 +02:00
validity some UB gets masked by optimizations 2020-04-18 09:15:59 +02:00
abort-terminator.rs fix tests 2020-03-21 10:54:56 +01:00
environ-gets-deallocated.rs remove or update 'ignore-windows' annotations in some tests 2020-03-27 14:18:19 -04:00
generator-pinned-moved.rs adjust for error reform 2020-03-19 08:25:08 +01:00
invalid_bool.rs make sure our disable flags do not miss all bugs; move type-assert intrinsic tests to their folder 2020-04-14 10:23:47 +02:00
invalid_char.rs make sure our disable flags do not miss all bugs; move type-assert intrinsic tests to their folder 2020-04-14 10:23:47 +02:00
invalid_enum_discriminant.rs make sure our disable flags do not miss all bugs; move type-assert intrinsic tests to their folder 2020-04-14 10:23:47 +02:00
invalid_int.rs make sure our disable flags do not miss all bugs; move type-assert intrinsic tests to their folder 2020-04-14 10:23:47 +02:00
issue-miri-1112.rs add test for sketchy vtable 2019-12-13 13:19:48 +01:00
memleak_rc.rs enable leak tests on macOS 2020-03-27 19:39:35 +01:00
memleak.rs enable leak tests on macOS 2020-03-27 19:39:35 +01:00
modifying_constants.rs adjust for error reform 2020-03-19 08:25:08 +01:00
never_say_never.rs the never type got de-stabilized again; adjust tests 2019-12-15 12:23:43 +01:00
never_transmute_humans.rs rustup, fix for intrinsic rename and transmute error change 2020-03-14 09:27:35 +01:00
never_transmute_void.rs adjust stacktrace printing to rustc changes 2020-04-02 09:14:17 +02:00
null_pointer_deref_zst.rs fix compile-fail ref files 2019-04-21 13:18:05 +02:00
null_pointer_deref.rs fix compile-fail ref files 2019-04-21 13:18:05 +02:00
null_pointer_write_zst.rs fix compile-fail ref files 2019-04-21 13:18:05 +02:00
null_pointer_write.rs fix compile-fail ref files 2019-04-21 13:18:05 +02:00
overwriting_part_of_relocation_makes_the_rest_undefined.rs make sure our disable flags do not miss all bugs; move type-assert intrinsic tests to their folder 2020-04-14 10:23:47 +02:00
pointer_byte_read.rs rustup, and some final message adjustments 2020-03-19 08:41:01 +01:00
rc_as_raw.rs adjust for error reform 2020-03-19 08:25:08 +01:00
reading_half_a_pointer.rs rustup, and some final message adjustments 2020-03-19 08:41:01 +01:00
slice-too-big.rs adjust error 2020-03-09 17:03:39 +01:00
static_memory_modification1.rs adjust for error reform 2020-03-19 08:25:08 +01:00
static_memory_modification2.rs adjust for error reform 2020-03-19 08:25:08 +01:00
static_memory_modification3.rs adjust for error reform 2020-03-19 08:25:08 +01:00
storage_dead_dangling.rs adjust for error reform 2020-03-19 08:25:08 +01:00
thread-spawn.rs better error message when the program tries to spawn a thread 2019-07-06 10:07:21 +02:00
transmute_fat1.rs rustup, and some final message adjustments 2020-03-19 08:41:01 +01:00
transmute-pair-undef.rs adjust for error reform 2020-03-19 08:25:08 +01:00
undefined_byte_read.rs adjust for error reform 2020-03-19 08:25:08 +01:00
unreachable.rs test unreachable intrinsic 2020-03-25 09:32:15 +01:00
zst1.rs adjust for refactored memory pointer checks 2019-06-23 20:19:26 +02:00
zst2.rs adjust for error reform 2020-03-19 08:25:08 +01:00
zst3.rs Apply suggestions from code review 2019-06-24 14:50:27 +02:00