From: Pierre-Emmanuel Patry Date: Tue, 17 Oct 2023 11:40:47 +0000 (+0200) Subject: gccrs: Add regression test for float literal tuple indices X-Git-Tag: basepoints/gcc-15~2028 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f522eefcfd1dec9dc5291146e6747a0cb4632385;p=thirdparty%2Fgcc.git gccrs: 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 --- 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; +}