(root)/
gcc-13.2.0/
gcc/
testsuite/
rust/
compile/
cfg3.rs
// { 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();
}