summaryrefslogtreecommitdiffstats
path: root/tests/rust/global_variable.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rust/global_variable.rs')
-rw-r--r--tests/rust/global_variable.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/rust/global_variable.rs b/tests/rust/global_variable.rs
new file mode 100644
index 0000000..5fb8572
--- /dev/null
+++ b/tests/rust/global_variable.rs
@@ -0,0 +1,5 @@
+#[no_mangle]
+pub static mut MUT_GLOBAL_ARRAY: [c_char; 128] = [0; 128];
+
+#[no_mangle]
+pub static CONST_GLOBAL_ARRAY: [c_char; 128] = [0; 128];