From: Pierre-Emmanuel Patry Date: Fri, 5 Jun 2026 14:32:57 +0000 (+0200) Subject: gccrs: Add a new test for float literals X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d63aecaae6cb9c5e96339238b045ba6eb431222d;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/testsuite/rust/compile/float_literals.rs b/gcc/testsuite/rust/compile/float_literals.rs new file mode 100644 index 00000000000..94929f73881 --- /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; +}