summaryrefslogtreecommitdiffstats
path: root/tests/rust/item_types.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rust/item_types.rs')
-rw-r--r--tests/rust/item_types.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/rust/item_types.rs b/tests/rust/item_types.rs
new file mode 100644
index 0000000..b54b0ef
--- /dev/null
+++ b/tests/rust/item_types.rs
@@ -0,0 +1,12 @@
+
+pub const MY_CONST: u8 = 4;
+
+#[no_mangle]
+pub extern "C" fn ExternFunction() {
+}
+
+#[repr(u8)]
+pub enum OnlyThisShouldBeGenerated {
+ Foo,
+ Bar,
+}