diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2023-08-21 16:26:51 +0200 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2023-09-11 13:44:53 +0000 |
commit | a804f981959909e1676d9ccbcdd0470a4712b2b4 (patch) | |
tree | 0ae536b9c38dfd3f52609cb311ed185e32ecbcae /gcc | |
parent | 6a8b207b9ef7f9038e0cae7766117428783825d8 (diff) | |
download | gcc-a804f981959909e1676d9ccbcdd0470a4712b2b4.zip gcc-a804f981959909e1676d9ccbcdd0470a4712b2b4.tar.gz gcc-a804f981959909e1676d9ccbcdd0470a4712b2b4.tar.bz2 |
privacy: Add testcase for #1260
gcc/testsuite/ChangeLog:
* rust/compile/privacy9.rs: New test.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/rust/compile/privacy9.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/rust/compile/privacy9.rs b/gcc/testsuite/rust/compile/privacy9.rs new file mode 100644 index 0000000..9dac0cf --- /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 |