From 778bd9855228c17c01d4ab6daf817a5e81af1166 Mon Sep 17 00:00:00 2001 From: Pierre-Emmanuel Patry Date: Tue, 17 Oct 2023 13:40:47 +0200 Subject: [PATCH] Add regression test for float literal tuple indices Add a new regression test in order to highlight the fix for #2659. gcc/testsuite/ChangeLog: * rust/compile/not_a_float_literal_tuple_index.rs: New test. Signed-off-by: Pierre-Emmanuel Patry --- gcc/testsuite/rust/compile/not_a_float_literal_tuple_index.rs | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 gcc/testsuite/rust/compile/not_a_float_literal_tuple_index.rs diff --git a/gcc/testsuite/rust/compile/not_a_float_literal_tuple_index.rs b/gcc/testsuite/rust/compile/not_a_float_literal_tuple_index.rs new file mode 100644 index 000000000000..b67d0be3ff02 --- /dev/null +++ b/gcc/testsuite/rust/compile/not_a_float_literal_tuple_index.rs @@ -0,0 +1,3 @@ +fn main() { + (1, (2, 3)).1.1; +}