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

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