rust/tests/ui/precondition-checks/cfg-ub-checks-default.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
229 B
Rust
Raw Normal View History

//@ run-pass
2024-04-11 17:53:27 -04:00
//@ revisions: YES NO
//@ [YES] compile-flags: -Cdebug-assertions=yes
//@ [NO] compile-flags: -Cdebug-assertions=no
#![feature(cfg_ub_checks)]
fn main() {
assert_eq!(cfg!(ub_checks), cfg!(debug_assertions));
}