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

commit r17-1887-gd63aecaae6cb9c5e96339238b045ba6eb431222d
Author: Pierre-Emmanuel Patry <[email protected]>
Date:   Fri Jun 5 16:32:57 2026 +0200

    gccrs: Add a new test for float literals
    
    utf8_identifiers test has been changed to narrow it's scope. This change
    means the test does not cover the unsuffixed float anymore and we aim to
    fix that with a new separate test.
    
    gcc/testsuite/ChangeLog:
    
            * rust/compile/float_literals.rs: New test.
    
    Signed-off-by: Pierre-Emmanuel Patry <[email protected]>

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

diff --git a/gcc/testsuite/rust/compile/float_literals.rs 
b/gcc/testsuite/rust/compile/float_literals.rs
new file mode 100644
index 000000000000..94929f738817
--- /dev/null
+++ b/gcc/testsuite/rust/compile/float_literals.rs
@@ -0,0 +1,13 @@
+#![feature(no_core)]
+#![no_core]
+
+pub fn f() {
+    let _ = 0.;
+    let _ = 159.;
+    let _ = 0.0;
+    let _ = 159.0;
+    let _ = 0.0f32;
+    let _ = 159.0f32;
+    let _ = 0_0.0f32;
+    let _ = 0_159.0f32;
+}

Reply via email to