about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/example/std_example.rs
diff options
context:
space:
mode:
authorAntoni Boucher <bouanto@zoho.com>2021-08-15 08:29:07 -0400
committerAntoni Boucher <bouanto@zoho.com>2021-08-15 08:29:07 -0400
commit3d5d4e324d683ad5519345089d4a1ecb3c3d1f42 (patch)
tree0859c94db30cb4e9b5c5a4341d7ebf6580fdf7f1 /compiler/rustc_codegen_gcc/example/std_example.rs
parent6fc069625a32c0a2ff79075eac3d784268fd9882 (diff)
parente228f0c16ea8c34794a6285bf57aab627c26b147 (diff)
downloadrust-3d5d4e324d683ad5519345089d4a1ecb3c3d1f42.tar.gz
rust-3d5d4e324d683ad5519345089d4a1ecb3c3d1f42.zip
Merge commit 'e228f0c16ea8c34794a6285bf57aab627c26b147' into libgccjit-codegen
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/std_example.rs')
-rw-r--r--compiler/rustc_codegen_gcc/example/std_example.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/rustc_codegen_gcc/example/std_example.rs b/compiler/rustc_codegen_gcc/example/std_example.rs
index d99d6bb4b85..eba0eb82896 100644
--- a/compiler/rustc_codegen_gcc/example/std_example.rs
+++ b/compiler/rustc_codegen_gcc/example/std_example.rs
@@ -16,7 +16,6 @@ fn main() {
     let stderr = ::std::io::stderr();
     let mut stderr = stderr.lock();
 
-    // FIXME: this thread panics.
     std::thread::spawn(move || {
         println!("Hello from another thread!");
     });
@@ -56,7 +55,7 @@ fn main() {
     assert_eq!(-32768i16, (-32768i16).saturating_add(-32768));
     assert_eq!(32767i16, 32767i16.saturating_add(1));
 
-    /*assert_eq!(0b0000000000000000000000000010000010000000000000000000000000000000_0000000000100000000000000000000000001000000000000100000000000000u128.leading_zeros(), 26);
+    assert_eq!(0b0000000000000000000000000010000010000000000000000000000000000000_0000000000100000000000000000000000001000000000000100000000000000u128.leading_zeros(), 26);
     assert_eq!(0b0000000000000000000000000010000000000000000000000000000000000000_0000000000000000000000000000000000001000000000000000000010000000u128.trailing_zeros(), 7);
 
     let _d = 0i128.checked_div(2i128);
@@ -85,7 +84,7 @@ fn main() {
     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);*/
+    assert_eq!(houndred_f64 as i128, 100);
 
     let _a = 1u32 << 2u8;