Skip to content

Commit def0c0b

Browse files
committed
feat: better test for params_count.rs
1 parent ebffb97 commit def0c0b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/codegen/params_count.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@
66

77
extern crate mini_core;
88

9+
// CHECK-LABEL: foo
10+
// CHECK-LABEL: main
11+
912
// expect three int params
1013
// CHECK-LABEL: foo
11-
// CHECK: {{((int32_t .*,?\s?){3})}}
14+
// CHECK: (int32_t {{[a-zA-Z_][a-zA-Z0-9_]*}}, int32_t {{[a-zA-Z_][a-zA-Z0-9_]*}}, int32_t {{[a-zA-Z_][a-zA-Z0-9_]*}})
15+
// CHECK: return 0;
1216
#[no_mangle]
1317
pub fn foo(_x: i32, _y: i32, _z: i32) -> i32 {
1418
0

0 commit comments

Comments
 (0)