summaryrefslogtreecommitdiffstats
path: root/extra/bitflags-1.3.2/tests/compile-pass/repr/c.rs
diff options
context:
space:
mode:
Diffstat (limited to 'extra/bitflags-1.3.2/tests/compile-pass/repr/c.rs')
-rw-r--r--extra/bitflags-1.3.2/tests/compile-pass/repr/c.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/extra/bitflags-1.3.2/tests/compile-pass/repr/c.rs b/extra/bitflags-1.3.2/tests/compile-pass/repr/c.rs
new file mode 100644
index 000000000..6feba36ed
--- /dev/null
+++ b/extra/bitflags-1.3.2/tests/compile-pass/repr/c.rs
@@ -0,0 +1,10 @@
+use bitflags::bitflags;
+
+bitflags! {
+ #[repr(C)]
+ struct Flags: u32 {
+ const A = 0b00000001;
+ }
+}
+
+fn main() {}