2022-02-27 15:26:24 -06:00
|
|
|
// This test check that a top-level #![allow(unexpected_cfgs)] works
|
|
|
|
//
|
|
|
|
// check-pass
|
2023-05-01 07:16:38 -05:00
|
|
|
// compile-flags: --check-cfg=cfg() -Z unstable-options
|
2022-02-27 15:26:24 -06:00
|
|
|
|
|
|
|
#![allow(unexpected_cfgs)]
|
|
|
|
|
|
|
|
#[cfg(FALSE)]
|
|
|
|
fn bar() {}
|
|
|
|
|
|
|
|
fn foo() {
|
|
|
|
if cfg!(FALSE) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|