diff options
Diffstat (limited to 'src/test/ui/check-cfg/well-known-values.rs')
-rw-r--r-- | src/test/ui/check-cfg/well-known-values.rs | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/src/test/ui/check-cfg/well-known-values.rs b/src/test/ui/check-cfg/well-known-values.rs deleted file mode 100644 index 96375dc8d..000000000 --- a/src/test/ui/check-cfg/well-known-values.rs +++ /dev/null @@ -1,42 +0,0 @@ -// This test check that we lint on non well known values and that we don't lint on well known -// values -// -// check-pass -// compile-flags: --check-cfg=values() -Z unstable-options - -#[cfg(target_os = "linuz")] -//~^ WARNING unexpected `cfg` condition value -fn target_os_linux_misspell() {} - -#[cfg(target_os = "linux")] -fn target_os_linux() {} - -#[cfg(target_has_atomic = "0")] -//~^ WARNING unexpected `cfg` condition value -fn target_has_atomic_invalid() {} - -#[cfg(target_has_atomic = "8")] -fn target_has_atomic() {} - -#[cfg(unix = "aa")] -//~^ WARNING unexpected `cfg` condition value -fn unix_with_value() {} - -#[cfg(unix)] -fn unix() {} - -#[cfg(miri = "miri")] -//~^ WARNING unexpected `cfg` condition value -fn miri_with_value() {} - -#[cfg(miri)] -fn miri() {} - -#[cfg(doc = "linux")] -//~^ WARNING unexpected `cfg` condition value -fn doc_with_value() {} - -#[cfg(doc)] -fn doc() {} - -fn main() {} |