illegal_write2 does not work with optimizations

This commit is contained in:
Ralf Jung 2018-11-03 10:23:41 +01:00
parent e9f79f5f6f
commit 5f42aa61d5

View File

@ -1,3 +1,7 @@
// We fail to detect this when neither this nor libstd are optimized/have retagging.
// FIXME: Investigate that.
// compile-flags: -Zmir-opt-level=0
#![allow(unused_variables)]
fn main() {