Debian Codegraph @

gcc/testsuite/rust/compile/cfg-core1.rs

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 }