From: Pierre-Emmanuel Patry <[email protected]>

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]>
---
This change was merged into the gccrs repository and is posted here for
upstream visibility and potential drive-by review, as requested by GCC
release managers.
Each commit email contains a link to its details on github from where you can
find the Pull-Request and associated discussions.


Commit on github: 
https://github.com/Rust-GCC/gccrs/commit/753a3a27edb780492d190c595264109d19dff89c

The commit has NOT been mentioned in any issue.

The commit has been mentioned in the following pull-request(s):
 - https://github.com/Rust-GCC/gccrs/pull/4579

 gcc/testsuite/rust/compile/float_literals.rs | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 gcc/testsuite/rust/compile/float_literals.rs

diff --git a/gcc/testsuite/rust/compile/float_literals.rs 
b/gcc/testsuite/rust/compile/float_literals.rs
new file mode 100644
index 000000000..94929f738
--- /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;
+}
-- 
2.54.0

Reply via email to