2023-03-09 21:10:08 +01:00
|
|
|
// This test checks that we don't lint values defined by a custom target (target json)
|
|
|
|
//
|
|
|
|
//@ check-pass
|
2024-04-09 14:07:30 +02:00
|
|
|
//@ no-auto-check-cfg
|
2023-03-09 21:10:08 +01:00
|
|
|
//@ needs-llvm-components: x86
|
2024-02-25 14:56:14 +01:00
|
|
|
//@ compile-flags: --crate-type=lib --check-cfg=cfg() --target={{src-base}}/check-cfg/my-awesome-platform.json
|
2023-03-09 21:10:08 +01: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() {}
|