aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/cfg4.rs
blob: 2834c277ddfc6e2eb0943ceedeb403816b515c3e (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-additional-options "-w -frust-cfg=A" }
struct Foo;
impl Foo {
    #[cfg(any(A, B))]
    fn test(&self) {}
}

fn main() {
    let a = Foo;
    a.test();
}