some UB gets masked by optimizations
This commit is contained in:
parent
c6ab27577b
commit
0345ee42da
3 changed files with 6 additions and 5 deletions
|
|
@ -1,5 +1,5 @@
|
|||
// should find the bug even without these
|
||||
// compile-flags: -Zmiri-disable-validation -Zmiri-disable-stacked-borrows
|
||||
// should find the bug even without these, but gets masked by optimizations
|
||||
// compile-flags: -Zmiri-disable-validation -Zmiri-disable-stacked-borrows -Zmir-opt-level=0
|
||||
|
||||
struct SliceWithHead(u8, [u8]);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// should find the bug even without these
|
||||
// compile-flags: -Zmiri-disable-validation -Zmiri-disable-stacked-borrows
|
||||
// should find the bug even without these, but gets masked by optimizations
|
||||
// compile-flags: -Zmiri-disable-validation -Zmiri-disable-stacked-borrows -Zmir-opt-level=0
|
||||
|
||||
#[repr(align(256))]
|
||||
#[derive(Debug)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
// compile-flags: -Zmir-opt-level=1
|
||||
// gets masked by optimizations
|
||||
// compile-flags: -Zmir-opt-level=0
|
||||
#![feature(rustc_attrs)]
|
||||
#![allow(unused_attributes)]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue