Skip to content

Commit ebffb97

Browse files
committed
chore: explain what tests do
1 parent 85f3d71 commit ebffb97

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

tests/codegen/filename.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Test that the generated code has the filename and function name in it
2+
13
// CHECK: filename
24

35
#![feature(no_core)]

tests/codegen/params_count.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1+
//! Test that the generated code has the right number of parameters
2+
13
#![feature(no_core)]
24
#![no_core]
35
#![no_main]
46

57
extern crate mini_core;
68

79
// expect three int params
10+
// CHECK-LABEL: foo
811
// CHECK: {{((int32_t .*,?\s?){3})}}
912
#[no_mangle]
1013
pub fn foo(_x: i32, _y: i32, _z: i32) -> i32 {

tests/codegen/ret_value.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
//! Test that we can return a value from a function
12
#![feature(no_core)]
23
#![no_core]
34
#![no_main]
45

56
extern crate mini_core;
67

7-
// expect three int params
8+
// CHECK-LABEL: main
89
// CHECK: 42
910
#[no_mangle]
1011
pub fn main() -> i32 {

0 commit comments

Comments
 (0)