[gcc r14-8004] gccrs: privacy: Add testcase for #1260

Arthur Cohen cohenarthur@gcc.gnu.org
Tue Jan 16 18:12:43 GMT 2024


https://gcc.gnu.org/g:ae87a8ee081d309dcc3aaa4f96d8a2e1f3e8462d

commit r14-8004-gae87a8ee081d309dcc3aaa4f96d8a2e1f3e8462d
Author: Arthur Cohen <arthur.cohen@embecosm.com>
Date:   Mon Aug 21 16:26:51 2023 +0200

    gccrs: privacy: Add testcase for #1260
    
    gcc/testsuite/ChangeLog:
    
            * rust/compile/privacy9.rs: New test.

Diff:
---
 gcc/testsuite/rust/compile/privacy9.rs | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/gcc/testsuite/rust/compile/privacy9.rs b/gcc/testsuite/rust/compile/privacy9.rs
new file mode 100644
index 00000000000..9dac0cf3f2c
--- /dev/null
+++ b/gcc/testsuite/rust/compile/privacy9.rs
@@ -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


More information about the Gcc-cvs mailing list