2023-02-13 15:07:46 -06:00
|
|
|
// compile-flags: --crate-type=lib
|
2023-05-06 22:20:58 -05:00
|
|
|
// unit-test: InstSimplify
|
2023-02-13 15:07:46 -06:00
|
|
|
|
|
|
|
#![feature(core_intrinsics)]
|
|
|
|
|
|
|
|
// Want to make sure this assertion isn't compiled away in generic code.
|
|
|
|
|
2023-05-06 22:20:58 -05:00
|
|
|
// EMIT_MIR dont_yeet_assert.generic.InstSimplify.diff
|
2023-02-13 15:07:46 -06:00
|
|
|
pub fn generic<T>() {
|
|
|
|
core::intrinsics::assert_mem_uninitialized_valid::<&T>();
|
|
|
|
}
|