From e009d3df6a03cf4b4cc020199ede902297b31076 Mon Sep 17 00:00:00 2001 From: Pierre-Emmanuel Patry Date: Tue, 17 Oct 2023 13:40:47 +0200 Subject: 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 (limited to 'gcc') 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 0000000..b67d0be --- /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; +} -- cgit v1.1