Skip to content

Commit f112e9a

Browse files
committed
Check ref and mut
1 parent f45bf12 commit f112e9a

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

tests/codegen/float/f16-f128-inline.rs

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
#![feature(f128)]
55
#![feature(f16)]
66

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