From: Pierre-Emmanuel Patry Date: Tue, 31 Oct 2023 14:43:51 +0000 (+0100) Subject: gccrs: Add a new test for float disambiguation X-Git-Tag: basepoints/gcc-15~1985 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4e554b0ddea9488bb6f6bd326afe4b29fd68e1d3;p=thirdparty%2Fgcc.git gccrs: Add a new test for float disambiguation This new regression test highlight the behavior fixed for float disambiguation with empty floating point. gcc/testsuite/ChangeLog: * rust/compile/tuple_float_index.rs: New test. Signed-off-by: Pierre-Emmanuel Patry --- diff --git a/gcc/testsuite/rust/compile/tuple_float_index.rs b/gcc/testsuite/rust/compile/tuple_float_index.rs new file mode 100644 index 000000000000..87410c5708d7 --- /dev/null +++ b/gcc/testsuite/rust/compile/tuple_float_index.rs @@ -0,0 +1,6 @@ +fn main() { + let tuple = (((),()),); + + // Do not reformat, the space after the second dot is required + let _ = tuple.0. 1; +}