]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: privacy: Add testcase for #1260
authorArthur Cohen <arthur.cohen@embecosm.com>
Mon, 21 Aug 2023 14:26:51 +0000 (16:26 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 18:04:35 +0000 (19:04 +0100)
gcc/testsuite/ChangeLog:

* rust/compile/privacy9.rs: New test.

gcc/testsuite/rust/compile/privacy9.rs [new file with mode: 0644]

diff --git a/gcc/testsuite/rust/compile/privacy9.rs b/gcc/testsuite/rust/compile/privacy9.rs
new file mode 100644 (file)
index 0000000..9dac0cf
--- /dev/null
@@ -0,0 +1,6 @@
+fn main() {
+    let arr0: [i32; 5] = [1, 2, 3, 4, 5];
+    let arr1: [i32; 5] = [1, 2, 3, 4, 5];
+    let arr2: [i32; 5] = [1, 2, 3, 4, 5];
+    let arr3: [_; 5] = [1, 2, 3, 4, 5];
+}
\ No newline at end of file