From 14aacf472dd089804302c5a2f41c1fc37ba5e824 Mon Sep 17 00:00:00 2001 From: SimplyTheOther Date: Wed, 3 Feb 2021 13:48:20 +0800 Subject: Removed testcase that apparently didn't compile on CI --- gcc/testsuite/rust.test/compilable/arrays3.rs | 66 --------------------------- 1 file changed, 66 deletions(-) delete mode 100644 gcc/testsuite/rust.test/compilable/arrays3.rs (limited to 'gcc') 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 -- cgit v1.1