☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
cfg-core1.rs
☽
☼
gcc/testsuite/rust/compile/cfg-core1.rs
code
plain
raw
1
// { dg-additional-options "-frust-cfg=A -frust-cfg=B" }
2
3
#[cfg_attr(A, cfg(B))]
4
struct Foo0;
5
6
#[cfg_attr(A, cfg(C))]
7
struct Bar0;
8
9
fn main() {
10
let a = Foo0;
11
let a = Bar0; // { dg-error "cannot find value" }
12
}