From 6bf0a5cb5034a7e684dcc3500e841785237ce2dd Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 19:32:43 +0200 Subject: Adding upstream version 1:115.7.0. Signed-off-by: Daniel Baumann --- third_party/rust/bitflags/tests/compile-pass/repr/c.rs | 10 ++++++++++ .../rust/bitflags/tests/compile-pass/repr/transparent.rs | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100644 third_party/rust/bitflags/tests/compile-pass/repr/c.rs create mode 100644 third_party/rust/bitflags/tests/compile-pass/repr/transparent.rs (limited to 'third_party/rust/bitflags/tests/compile-pass/repr') diff --git a/third_party/rust/bitflags/tests/compile-pass/repr/c.rs b/third_party/rust/bitflags/tests/compile-pass/repr/c.rs new file mode 100644 index 0000000000..6feba36ed8 --- /dev/null +++ b/third_party/rust/bitflags/tests/compile-pass/repr/c.rs @@ -0,0 +1,10 @@ +use bitflags::bitflags; + +bitflags! { + #[repr(C)] + struct Flags: u32 { + const A = 0b00000001; + } +} + +fn main() {} diff --git a/third_party/rust/bitflags/tests/compile-pass/repr/transparent.rs b/third_party/rust/bitflags/tests/compile-pass/repr/transparent.rs new file mode 100644 index 0000000000..e38db4dd11 --- /dev/null +++ b/third_party/rust/bitflags/tests/compile-pass/repr/transparent.rs @@ -0,0 +1,10 @@ +use bitflags::bitflags; + +bitflags! { + #[repr(transparent)] + struct Flags: u32 { + const A = 0b00000001; + } +} + +fn main() {} -- cgit v1.2.3