summaryrefslogtreecommitdiffstats
path: root/tests/ui/check-cfg/compact-values.rs
blob: 13c072fe9206ddb6d946fe322435b781c271f0f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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", arch = "X"))]
//~^ WARNING unexpected `cfg` condition value
pub fn unexpected() {}

fn main() {}