about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/example/std_example.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-06-18 15:00:10 +0000
committerbors <bors@rust-lang.org>2025-06-18 15:00:10 +0000
commitf9c15f40fbd7b4ba1baea6fb89551274047e17b3 (patch)
tree7a8f47302a9efc517c790d26f20723cc9f4db6f6 /compiler/rustc_codegen_gcc/example/std_example.rs
parent6f935a044d1ddeb6160494a6320d008d7c311aef (diff)
parent864840512b7b605c0e44bfdbf29feb24c79608b3 (diff)
downloadrust-f9c15f40fbd7b4ba1baea6fb89551274047e17b3.tar.gz
rust-f9c15f40fbd7b4ba1baea6fb89551274047e17b3.zip
Auto merge of #142669 - GuillaumeGomez:subtree-update_cg_gcc_2025-06-18, r=GuillaumeGomez
Update GCC backend subtree
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/std_example.rs')
-rw-r--r--compiler/rustc_codegen_gcc/example/std_example.rs24
1 files changed, 12 insertions, 12 deletions
diff --git a/compiler/rustc_codegen_gcc/example/std_example.rs b/compiler/rustc_codegen_gcc/example/std_example.rs
index 5fa1e0afb06..7587b4827ca 100644
--- a/compiler/rustc_codegen_gcc/example/std_example.rs
+++ b/compiler/rustc_codegen_gcc/example/std_example.rs
@@ -77,18 +77,18 @@ fn main() {
     assert_eq!(tmp as i128, -0x1234_5678_9ABC_DEF0i128);
 
     // Check that all u/i128 <-> float casts work correctly.
-    let houndred_u128 = 100u128;
-    let houndred_i128 = 100i128;
-    let houndred_f32 = 100.0f32;
-    let houndred_f64 = 100.0f64;
-    assert_eq!(houndred_u128 as f32, 100.0);
-    assert_eq!(houndred_u128 as f64, 100.0);
-    assert_eq!(houndred_f32 as u128, 100);
-    assert_eq!(houndred_f64 as u128, 100);
-    assert_eq!(houndred_i128 as f32, 100.0);
-    assert_eq!(houndred_i128 as f64, 100.0);
-    assert_eq!(houndred_f32 as i128, 100);
-    assert_eq!(houndred_f64 as i128, 100);
+    let hundred_u128 = 100u128;
+    let hundred_i128 = 100i128;
+    let hundred_f32 = 100.0f32;
+    let hundred_f64 = 100.0f64;
+    assert_eq!(hundred_u128 as f32, 100.0);
+    assert_eq!(hundred_u128 as f64, 100.0);
+    assert_eq!(hundred_f32 as u128, 100);
+    assert_eq!(hundred_f64 as u128, 100);
+    assert_eq!(hundred_i128 as f32, 100.0);
+    assert_eq!(hundred_i128 as f64, 100.0);
+    assert_eq!(hundred_f32 as i128, 100);
+    assert_eq!(hundred_f64 as i128, 100);
 
     let _a = 1u32 << 2u8;