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

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