Skip to content

Commit 088af66

Browse files
RalfJungbjorn3
andauthored
better optimization suppression
Co-authored-by: bjorn3 <bjorn3@users.noreply.github.com>
1 parent d9bc19a commit 088af66

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/compile-fail/invalid_bool.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Make sure we find these even with many checks disabled.
33
// compile-flags: -Zmiri-disable-alignment-check -Zmiri-disable-stacked-borrows -Zmiri-disable-validation
44

5+
#[inline(never)]
56
fn dont_optimize<T>(x: T) -> T { x }
67

78
fn main() {

0 commit comments

Comments
 (0)