From: Arthur Cohen Date: Mon, 21 Aug 2023 14:26:51 +0000 (+0200) Subject: gccrs: privacy: Add testcase for #1260 X-Git-Tag: basepoints/gcc-15~2135 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ae87a8ee081d309dcc3aaa4f96d8a2e1f3e8462d;p=thirdparty%2Fgcc.git gccrs: privacy: Add testcase for #1260 gcc/testsuite/ChangeLog: * rust/compile/privacy9.rs: New test. --- diff --git a/gcc/testsuite/rust/compile/privacy9.rs b/gcc/testsuite/rust/compile/privacy9.rs new file mode 100644 index 000000000000..9dac0cf3f2c3 --- /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