blob: 0af3868929a8e34faaafca9041f5eb325a58db04 [file] [log] [blame] [edit]
//@ run-pass
//@ compile-flags: -C overflow_checks=false
#![feature(cfg_overflow_checks)]
fn main() {
assert!(!cfg!(overflow_checks));
assert!(!compiles_differently());
}
#[cfg(overflow_checks)]
fn compiles_differently()->bool {
true
}
#[cfg(not(overflow_checks))]
fn compiles_differently()->bool {
false
}