From 0e7afe1ac12470ba602d235637aeb46416b4a242 Mon Sep 17 00:00:00 2001 From: Jeong YunWon Date: Fri, 17 May 2024 19:25:13 +0900 Subject: [PATCH] try test --- tests/rust/cfg_field.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/rust/cfg_field.rs b/tests/rust/cfg_field.rs index aed5165d4..d23f82d12 100644 --- a/tests/rust/cfg_field.rs +++ b/tests/rust/cfg_field.rs @@ -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, + }; +}