rust/tests/ui/check-cfg/compact-values.rs

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

16 lines
374 B
Rust
Raw Normal View History

// This test check that we correctly emit an warning for compact cfg
//
// check-pass
// compile-flags: --check-cfg=cfg() -Z unstable-options
#![feature(cfg_target_compact)]
#[cfg(target(os = "linux", arch = "arm"))]
pub fn expected() {}
#[cfg(target(os = "linux", pointer_width = "X"))]
//~^ WARNING unexpected `cfg` condition value
pub fn unexpected() {}
fn main() {}