aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimplyTheOther <simplytheother@gmail.com>2021-02-03 13:48:20 +0800
committerSimplyTheOther <simplytheother@gmail.com>2021-02-03 13:48:20 +0800
commit14aacf472dd089804302c5a2f41c1fc37ba5e824 (patch)
tree49f22e2ac903e0c1ad8030170fe7e9d0fd33f88d
parenta48d424e4c55824f56d922d895c2a25f10347683 (diff)
downloadgcc-14aacf472dd089804302c5a2f41c1fc37ba5e824.zip
gcc-14aacf472dd089804302c5a2f41c1fc37ba5e824.tar.gz
gcc-14aacf472dd089804302c5a2f41c1fc37ba5e824.tar.bz2
Removed testcase that apparently didn't compile on CI
-rw-r--r--gcc/testsuite/rust.test/compilable/arrays3.rs66
1 files changed, 0 insertions, 66 deletions
diff --git a/gcc/testsuite/rust.test/compilable/arrays3.rs b/gcc/testsuite/rust.test/compilable/arrays3.rs
deleted file mode 100644
index 974e346..0000000
--- a/gcc/testsuite/rust.test/compilable/arrays3.rs
+++ /dev/null
@@ -1,66 +0,0 @@
-fn main() {
- // const, inferred array
- let const_inferred_array = [0, 1, 2, 3];
- // const, inferred, copied array
- let const_inferred_copied_array = [0; 4];
-
- // const index of const, inferred array
- let const_inferred_index = const_inferred_array[1];
- // variable index of const, inferred array
- let some_var = 3;
- let const_inferred_index_var = const_inferred_array[some_var];
-
- // const index of const, inferred, copied array
- let const_inferred_copied_index = const_inferred_copied_array[1];
- // variable index of const, inferred array
- let const_inferred_copied_index_var = const_inferred_copied_array[some_var];
-
- // mut, inferred array
- let mut mut_inferred_array = [0, 1, 2, 3];
- // mut, inferred, copied array
- let mut mut_inferred_copied_array = [0; 6];
-
- // const index of mut, inferred array
- let mut_inferred_index = mut_inferred_array[1];
- // variable index of mut, inferred array
- let mut_inferred_index_var = mut_inferred_array[some_var];
-
- // const index of mut, inferred, copied array
- let mut_inferred_copied_index = mut_inferred_copied_array[1];
- // variable index of mut, inferred array
- let mut_inferred_copied_index_var = mut_inferred_copied_array[some_var];
-
- // const, typed array
- let const_typed_array: [i32; 5] = [0, 1, 2, 3, 4];
- // const, typed, copied array
- let const_typed_copied_array: [i32; 4] = [2; 4];
-
- // const index of const, typed array
- let const_typed_index = const_typed_array[1];
- // variable index of const, typed array
- let const_typed_index_var = const_typed_array[some_var];
-
- // const index of const, typed, copied array
- let const_typed_copied_index = const_typed_copied_array[1];
- // variable index of const, typed array
- let const_typed_copied_index_var = const_typed_copied_array[some_var];
-
- // mut, typed array
- let mut mut_typed_array: [i32; 4] = [0, 1, 2, 3];
- // mut, typed, copied array
- let mut mut_typed_copied_array: [i32; 4] = [0; 4];
-
- // const index of mut, typed array
- let mut_typed_index = mut_typed_array[1];
- // variable index of mut, typed array
- let mut_typed_index_var = mut_typed_array[some_var];
-
- // const index of mut, typed, copied array
- let mut_typed_copied_index = mut_typed_copied_array[1];
- // variable index of mut, typed array
- let mut_typed_copied_index_var = mut_typed_copied_array[some_var];
-
-
- // index + 1 expression
- let some_thing = mut_inferred_copied_array[some_var + 1];
-} \ No newline at end of file