2022-04-25 05:07:21 -05:00
|
|
|
// This test check that we correctly emit an warning for compact cfg
|
|
|
|
//
|
2024-02-16 14:02:50 -06:00
|
|
|
//@ check-pass
|
2024-04-09 07:07:30 -05:00
|
|
|
//@ no-auto-check-cfg
|
2024-02-25 07:56:14 -06:00
|
|
|
//@ compile-flags: --check-cfg=cfg()
|
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() {}
|