]> git.proxmox.com Git - rustc.git/blame - src/test/ui/check-cfg/allow-macro-cfg.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / check-cfg / allow-macro-cfg.rs
CommitLineData
ee023bcb
FG
1// This test check that local #[allow(unexpected_cfgs)] works
2//
3// check-pass
4// compile-flags:--check-cfg=names() -Z unstable-options
5
6#[allow(unexpected_cfgs)]
7fn foo() {
8 if cfg!(FALSE) {}
9}
10
11fn main() {
12 #[allow(unexpected_cfgs)]
13 if cfg!(FALSE) {}
14}