[gcc r14-8111] gccrs: Add regression test for float literal tuple indices

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


https://gcc.gnu.org/g:f522eefcfd1dec9dc5291146e6747a0cb4632385

commit r14-8111-gf522eefcfd1dec9dc5291146e6747a0cb4632385
Author: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Date:   Tue Oct 17 13:40:47 2023 +0200

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

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

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


More information about the Gcc-cvs mailing list