summaryrefslogtreecommitdiffstats
path: root/tests/rust/raw_ident.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rust/raw_ident.rs')
-rw-r--r--tests/rust/raw_ident.rs20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/rust/raw_ident.rs b/tests/rust/raw_ident.rs
new file mode 100644
index 0000000..d3ceb56
--- /dev/null
+++ b/tests/rust/raw_ident.rs
@@ -0,0 +1,20 @@
+#[repr(u8)]
+pub enum r#Enum {
+ r#a,
+ r#b,
+}
+
+#[repr(C)]
+pub struct r#Struct {
+ r#field: r#Enum,
+}
+
+#[no_mangle]
+pub extern "C" fn r#fn(r#arg: r#Struct) {
+ println!("Hello world");
+}
+
+pub mod r#mod {
+ #[no_mangle]
+ pub static r#STATIC: r#Enum = r#Enum::r#b;
+}