File tree Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Original file line number Diff line number Diff line change 1
1
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
// SPDX-License-Identifier: Apache-2.0 OR MIT
3
+
4
+ // Check that `saturating_add` and `saturating_sub` are supported and return the
5
+ // expected results.
6
+
3
7
#![ feature( core_intrinsics) ]
4
8
use std:: intrinsics;
5
9
@@ -54,10 +58,12 @@ fn main() {
54
58
test_saturating_intrinsics ! ( u16 ) ;
55
59
test_saturating_intrinsics ! ( u32 ) ;
56
60
test_saturating_intrinsics ! ( u64 ) ;
61
+ test_saturating_intrinsics ! ( u128 ) ;
57
62
test_saturating_intrinsics ! ( usize ) ;
58
63
test_saturating_intrinsics ! ( i8 ) ;
59
64
test_saturating_intrinsics ! ( i16 ) ;
60
65
test_saturating_intrinsics ! ( i32 ) ;
61
66
test_saturating_intrinsics ! ( i64 ) ;
67
+ test_saturating_intrinsics ! ( i128 ) ;
62
68
test_saturating_intrinsics ! ( isize ) ;
63
69
}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments