2022-02-27 22:26:24 +01:00
|
|
|
// This test check that a top-level #![allow(unexpected_cfgs)] works
|
|
|
|
//
|
|
|
|
//@ check-pass
|
2024-04-09 14:07:30 +02:00
|
|
|
//@ no-auto-check-cfg
|
2024-02-25 14:56:14 +01:00
|
|
|
//@ compile-flags: --check-cfg=cfg()
|
2022-02-27 22:26:24 +01:00
|
|
|
|
|
|
|
#![allow(unexpected_cfgs)]
|
|
|
|
|
|
|
|
#[cfg(FALSE)]
|
|
|
|
fn bar() {}
|
|
|
|
|
|
|
|
fn foo() {
|
|
|
|
if cfg!(FALSE) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|