Debian Codegraph @

gcc/testsuite/rust/compile/struct_expr_field_attributes.rs

raw
1 pub struct Test {
2 #[cfg(not(any(
3 target_os = "solaris",
4 target_os = "illumos",
5 target_os = "fuchsia",
6 target_os = "redox",
7 )))]
8 value: bool,
9 // { dg-warning "field is never read" "" { target *-*-* } .-1 }
10 }
11
12 pub fn test() -> Test {
13 Test {
14 #[cfg(not(any(
15 target_os = "solaris",
16 target_os = "illumos",
17 target_os = "fuchsia",
18 target_os = "redox",
19 )))]
20 value: false,
21 }
22 }