2022-04-25 10:07:21 +00:00
|
|
|
// This test check that we correctly emit an warning for compact cfg
|
|
|
|
//
|
2024-02-16 20:02:50 +00:00
|
|
|
//@ check-pass
|
2024-04-09 12:07:30 +00:00
|
|
|
//@ no-auto-check-cfg
|
2024-02-25 13:56:14 +00:00
|
|
|
//@ compile-flags: --check-cfg=cfg()
|
2022-04-25 10:07:21 +00:00
|
|
|
|
|
|
|
#![feature(cfg_target_compact)]
|
|
|
|
|
|
|
|
#[cfg(target(os = "linux", arch = "arm"))]
|
|
|
|
pub fn expected() {}
|
|
|
|
|
2023-12-07 23:42:57 +00:00
|
|
|
#[cfg(target(os = "linux", pointer_width = "X"))]
|
2022-04-25 10:07:21 +00:00
|
|
|
//~^ WARNING unexpected `cfg` condition value
|
|
|
|
pub fn unexpected() {}
|
|
|
|
|
|
|
|
fn main() {}
|