mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
11 lines
229 B
Rust
11 lines
229 B
Rust
//@ run-pass
|
|
//@ 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));
|
|
}
|