about summary refs log tree commit diff
path: root/tests/ui/conditional-compilation/invalid-node-range-issue-129166.rs
blob: 7c42be3ed4d6e726de19a150fa85147991e6537f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// This was triggering an assertion failure in `NodeRange::new`.

//@ check-pass

#![feature(cfg_eval)]
#![feature(stmt_expr_attributes)]

fn f() -> u32 {
    #[cfg_eval] #[cfg(not(FALSE))] 0
}

fn main() {}