File tree 1 file changed +5
-43
lines changed
1 file changed +5
-43
lines changed Original file line number Diff line number Diff line change 1
- //! Ensure that functions using `f16` and `f128` are always inlined
1
+ //@ revisions: default nopt
2
+ //@ [nopt]compile-flags: -O -Zcross-crate-inline-threshold=never -Zmir-opt-level=0 -Cno-prepopulate-passes
3
+
4
+ // Ensure that functions using `f16` and `f128` are always inlined to avoid crashes
5
+ // when the backend does not support these types.
2
6
3
7
#![ crate_type = "lib" ]
4
8
#![ feature( f128) ]
5
9
#![ feature( f16) ]
6
10
7
- /* Check for direct arguments and return types */
8
-
9
11
pub fn f16_arg ( _a : f16 ) {
10
12
// CHECK-NOT: f16_arg
11
13
todo ! ( )
@@ -25,43 +27,3 @@ pub fn f128_ret() -> f128 {
25
27
// CHECK-NOT: f128_ret
26
28
todo ! ( )
27
29
}
28
-
29
- pub fn f16_ref_arg ( _a : & f16 ) {
30
- // CHECK-NOT: f16_ref_arg
31
- todo ! ( )
32
- }
33
-
34
- pub fn f16_ref_ret ( ) -> & ' static f16 {
35
- // CHECK-NOT: f16_ref_ret
36
- todo ! ( )
37
- }
38
-
39
- pub fn f128_ref_arg ( _a : & f128 ) {
40
- // CHECK-NOT: f128_ref_arg
41
- todo ! ( )
42
- }
43
-
44
- pub fn f128_ref_ret ( ) -> & ' static f128 {
45
- // CHECK-NOT: f128_ref_ret
46
- todo ! ( )
47
- }
48
-
49
- pub fn f16_mut_arg ( _a : & mut f16 ) {
50
- // CHECK-NOT: f16_mut_arg
51
- todo ! ( )
52
- }
53
-
54
- pub fn f16_mut_ret ( ) -> & ' static mut f16 {
55
- // CHECK-NOT: f16_mut_ret
56
- todo ! ( )
57
- }
58
-
59
- pub fn f128_mut_arg ( _a : & mut f128 ) {
60
- // CHECK-NOT: f128_mut_arg
61
- todo ! ( )
62
- }
63
-
64
- pub fn f128_mut_ret ( ) -> & ' static mut f128 {
65
- // CHECK-NOT: f128_mut_ret
66
- todo ! ( )
67
- }
You can’t perform that action at this time.
0 commit comments