]> git.proxmox.com Git - rustc.git/blob - tests/ui/check-cfg/compact-values.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / check-cfg / compact-values.rs
1 // This test check that we correctly emit an warning for compact cfg
2 //
3 // check-pass
4 // compile-flags:--check-cfg=values() -Z unstable-options
5
6 #![feature(cfg_target_compact)]
7
8 #[cfg(target(os = "linux", arch = "arm"))]
9 pub fn expected() {}
10
11 #[cfg(target(os = "linux", arch = "X"))]
12 //~^ WARNING unexpected `cfg` condition value
13 pub fn unexpected() {}
14
15 fn main() {}