1 // This test check that we lint on non well known values and that we don't lint on well known
5 // compile-flags: --check-cfg=values() -Z unstable-options
7 #[cfg(target_os = "linuz")]
8 //~^ WARNING unexpected `cfg` condition value
9 fn target_os_linux_misspell() {}
11 #[cfg(target_os = "linux")]
12 fn target_os_linux() {}
14 #[cfg(target_has_atomic = "0")]
15 //~^ WARNING unexpected `cfg` condition value
16 fn target_has_atomic_invalid() {}
18 #[cfg(target_has_atomic = "8")]
19 fn target_has_atomic() {}
22 //~^ WARNING unexpected `cfg` condition value
23 fn unix_with_value() {}
29 //~^ WARNING unexpected `cfg` condition value
30 fn miri_with_value() {}
36 //~^ WARNING unexpected `cfg` condition value
37 fn doc_with_value() {}