aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/cfg-core1.rs
blob: 7780cc9587a4e74e6a1a0bcc5301659356630a5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-additional-options "-frust-cfg=A -frust-cfg=B" }

#[cfg_attr(A, cfg(B))]
struct Foo0;

#[cfg_attr(A, cfg(C))]
struct Bar0;

fn main() {
    let a = Foo0;
    let a = Bar0; // { dg-error "cannot find value" }
}