about summary refs log tree commit diff
path: root/tests/ui/check-cfg/values-target-json.rs
blob: d473f39c3d6a5b847de443c96adcec4c4f1eaefb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// This test checks that we don't lint values defined by a custom target (target json)
//
//@ add-core-stubs
//@ check-pass
//@ no-auto-check-cfg
//@ needs-llvm-components: x86
//@ compile-flags: --crate-type=lib --check-cfg=cfg() --target={{src-base}}/check-cfg/my-awesome-platform.json

#![feature(lang_items, no_core, auto_traits)]
#![no_core]

extern crate minicore;
use minicore::*;

#[cfg(target_os = "linux")]
fn target_os_linux() {}

#[cfg(target_os = "ericos")]
fn target_os_ericos() {}