blob: 8016a4d190cc32477ee59dae83b5e0849ab56aed [file] [log] [blame]
// This test check that local #[allow(unexpected_cfgs)] works
//
// check-pass
// compile-flags:--check-cfg=names() -Z unstable-options
#[allow(unexpected_cfgs)]
fn foo() {
if cfg!(FALSE) {}
}
fn main() {
#[allow(unexpected_cfgs)]
if cfg!(FALSE) {}
}