about summary refs log tree commit diff
path: root/tests/ui/check-cfg/cfg-value-for-cfg-name-multiple.rs
blob: 3a94b6a607238e1f86c00ec44e9f0399da5f482f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// #120427
// This test checks that when a single cfg has a value for user's specified name
//
//@ check-pass
//@ no-auto-check-cfg
//@ compile-flags: --check-cfg=cfg(foo,values("my_value")) --check-cfg=cfg(bar,values("my_value"))

#[cfg(my_value)]
//~^ WARNING unexpected `cfg` condition name: `my_value`
fn x() {}

fn main() {}