2022-04-25 05:07:21 -05:00
|
|
|
// This test check that we correctly emit an warning for compact cfg
|
|
|
|
//
|
|
|
|
// check-pass
|
2023-05-01 07:16:38 -05:00
|
|
|
// compile-flags: --check-cfg=cfg() -Z unstable-options
|
2022-04-25 05:07:21 -05:00
|
|
|
|
|
|
|
#![feature(cfg_target_compact)]
|
|
|
|
|
|
|
|
#[cfg(target(os = "linux", arch = "arm"))]
|
|
|
|
pub fn expected() {}
|
|
|
|
|
|
|
|
#[cfg(target(os = "linux", architecture = "arm"))]
|
|
|
|
//~^ WARNING unexpected `cfg` condition name
|
|
|
|
pub fn unexpected() {}
|
|
|
|
|
|
|
|
fn main() {}
|