[gcc r14-8154] gccrs: Add a new test for float disambiguation

Arthur Cohen cohenarthur@gcc.gnu.org
Tue Jan 16 18:18:18 GMT 2024


https://gcc.gnu.org/g:4e554b0ddea9488bb6f6bd326afe4b29fd68e1d3

commit r14-8154-g4e554b0ddea9488bb6f6bd326afe4b29fd68e1d3
Author: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Date:   Tue Oct 31 15:43:51 2023 +0100

    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 <pierre-emmanuel.patry@embecosm.com>

Diff:
---
 gcc/testsuite/rust/compile/tuple_float_index.rs | 6 ++++++
 1 file changed, 6 insertions(+)

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 00000000000..87410c5708d
--- /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;
+}


More information about the Gcc-cvs mailing list