aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/global-path-array.rs
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/rust/compile/global-path-array.rs')
-rw-r--r--gcc/testsuite/rust/compile/global-path-array.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/testsuite/rust/compile/global-path-array.rs b/gcc/testsuite/rust/compile/global-path-array.rs
new file mode 100644
index 0000000..c3aa024
--- /dev/null
+++ b/gcc/testsuite/rust/compile/global-path-array.rs
@@ -0,0 +1,5 @@
+const X: i32 = 1;
+
+pub fn foo() -> [i32; 1] {
+ [::X]
+}