2023-03-09 14:10:08 -06:00
|
|
|
// This test checks that we don't lint values defined by a custom target (target json)
|
|
|
|
//
|
|
|
|
// check-pass
|
|
|
|
// needs-llvm-components: x86
|
2023-11-16 11:41:45 -06:00
|
|
|
// compile-flags: --crate-type=lib --check-cfg=cfg() --target={{src-base}}/check-cfg/my-awesome-platform.json -Z unstable-options
|
2023-03-09 14:10:08 -06:00
|
|
|
|
|
|
|
#![feature(lang_items, no_core, auto_traits)]
|
|
|
|
#![no_core]
|
|
|
|
|
|
|
|
#[lang = "sized"]
|
|
|
|
trait Sized {}
|
|
|
|
|
|
|
|
#[cfg(target_os = "linux")]
|
|
|
|
fn target_os_linux() {}
|
|
|
|
|
|
|
|
#[cfg(target_os = "ericos")]
|
|
|
|
fn target_os_ericos() {}
|