mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
16 lines
367 B
Rust
16 lines
367 B
Rust
// This test check that we correctly emit an warning for compact cfg
|
|
//
|
|
// check-pass
|
|
// compile-flags:--check-cfg=values() -Z unstable-options
|
|
|
|
#![feature(cfg_target_compact)]
|
|
|
|
#[cfg(target(os = "linux", arch = "arm"))]
|
|
pub fn expected() {}
|
|
|
|
#[cfg(target(os = "linux", arch = "X"))]
|
|
//~^ WARNING unexpected `cfg` condition value
|
|
pub fn unexpected() {}
|
|
|
|
fn main() {}
|