summaryrefslogtreecommitdiffstats
path: root/src/test/ui/check-cfg/stmt-no-ice.rs
blob: cf76487ed46fb56d9060485f7b23397c71653fb0 (plain)
1
2
3
4
5
6
7
8
9
10
// This test checks that there is no ICE with this code
//
// check-pass
// compile-flags:--check-cfg=names() -Z unstable-options

fn main() {
    #[cfg(crossbeam_loom)]
    //~^ WARNING unexpected `cfg` condition name
    {}
}