summaryrefslogtreecommitdiff
path: root/bindgen-tests/tests/expectations/tests/empty-enum.rs
diff options
context:
space:
mode:
Diffstat (limited to 'bindgen-tests/tests/expectations/tests/empty-enum.rs')
-rw-r--r--bindgen-tests/tests/expectations/tests/empty-enum.rs34
1 files changed, 34 insertions, 0 deletions
diff --git a/bindgen-tests/tests/expectations/tests/empty-enum.rs b/bindgen-tests/tests/expectations/tests/empty-enum.rs
new file mode 100644
index 00000000..fe188b3e
--- /dev/null
+++ b/bindgen-tests/tests/expectations/tests/empty-enum.rs
@@ -0,0 +1,34 @@
+#![allow(
+ dead_code,
+ non_snake_case,
+ non_camel_case_types,
+ non_upper_case_globals
+)]
+
+pub type EmptyConstified = ::std::os::raw::c_uint;
+#[repr(u32)]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum EmptyRustified {
+ __bindgen_cannot_repr_c_on_empty_enum = 0,
+}
+pub mod EmptyModule {
+ pub type Type = ::std::os::raw::c_uint;
+}
+#[repr(i8)]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum EmptyClassRustified {
+ __bindgen_cannot_repr_c_on_empty_enum = 0,
+}
+pub type EmptyClassConstified = ::std::os::raw::c_char;
+pub mod EmptyClassModule {
+ pub type Type = ::std::os::raw::c_char;
+}
+#[repr(i8)]
+#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+pub enum ForwardClassRustified {
+ __bindgen_cannot_repr_c_on_empty_enum = 0,
+}
+pub type ForwardClassConstified = ::std::os::raw::c_char;
+pub mod ForwardClassModule {
+ pub type Type = ::std::os::raw::c_char;
+}