Skip to content

Commit ff21e86

Browse files
committed
Fixup inline test
1 parent f112e9a commit ff21e86

File tree

1 file changed

+5
-43
lines changed

1 file changed

+5
-43
lines changed
+5-43
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
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.
26

37
#![crate_type = "lib"]
48
#![feature(f128)]
59
#![feature(f16)]
610

7-
/* Check for direct arguments and return types */
8-
911
pub fn f16_arg(_a: f16) {
1012
// CHECK-NOT: f16_arg
1113
todo!()
@@ -25,43 +27,3 @@ pub fn f128_ret() -> f128 {
2527
// CHECK-NOT: f128_ret
2628
todo!()
2729
}
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-
}

0 commit comments

Comments
 (0)