aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/torture/cfg_attr.rs
blob: d65faf2972a044cc1d2ba0309e3ed235dabe7bd8 (plain)
1
2
3
4
5
6
7
mod fake {} // Add one line so gccrs doesn't believe we're parsing a shebang

#[cfg_attr(feature = "somefeature", attribute = "someattr")]
struct Feature;
// { dg-warning "struct is never constructed" "" { target *-*-* } .-1 }

fn main() {}