Skip to content

Commit

Permalink
try test
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowone committed May 17, 2024
1 parent 37627ba commit 0e7afe1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/rust/cfg_field.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,18 @@ pub fn foo() {
x: 0,
};
}

#[repr(C)]
pub struct Bar {
pub x: i32,
#[cfg(windows)]
pub y: u32,
}

impl Bar {
pub const BAR: Self = Self {
x: 0,
#[cfg(windows)]
y: 0,
};
}

0 comments on commit 0e7afe1

Please sign in to comment.