2023-05-06 16:26:53 +00:00
|
|
|
//@ check-pass
|
2023-11-16 17:41:45 +00:00
|
|
|
//
|
2024-04-09 12:07:30 +00:00
|
|
|
//@ no-auto-check-cfg
|
2023-11-16 17:41:45 +00:00
|
|
|
//@ revisions: values_before values_after
|
|
|
|
//@ compile-flags: --check-cfg=cfg(values_before,values_after)
|
|
|
|
//@ [values_before]compile-flags: --check-cfg=cfg(a,values("b")) --check-cfg=cfg(a)
|
|
|
|
//@ [values_after]compile-flags: --check-cfg=cfg(a) --check-cfg=cfg(a,values("b"))
|
2023-05-06 16:26:53 +00:00
|
|
|
|
|
|
|
#[cfg(a)]
|
|
|
|
fn my_cfg() {}
|
|
|
|
|
|
|
|
#[cfg(a = "unk")]
|
|
|
|
//~^ WARNING unexpected `cfg` condition value
|
|
|
|
fn my_cfg() {}
|
|
|
|
|
|
|
|
fn main() {}
|