Skip to content

Commit 9928882

Browse files
committed
fix
Signed-off-by: xizheyin <[email protected]>
1 parent ca34332 commit 9928882

File tree

5 files changed

+10
-15
lines changed

5 files changed

+10
-15
lines changed

tests/bless/basic_math.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
//@ aux-build:mini_core.rs
2+
//@ run-pass
3+
//@ exit-code: 0
24

35
#![feature(no_core)]
46
#![no_core]
@@ -15,6 +17,3 @@ pub fn main() -> i32 {
1517
pub fn foo(x: u8, _y: u16, _z: u32) -> i64 {
1618
x as i64
1719
}
18-
19-
//@ run-pass
20-
//@ exit-code: 0

tests/codegen/filename.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
//! Test that the generated code has the filename and function name in it
22
33
//@ aux-build:mini_core.rs
4+
//@ run-pass
5+
//@ exit-code: 0
46

57
// CHECK: filename
68

@@ -20,6 +22,3 @@ pub fn function_name() -> i32 {
2022
pub fn main() -> i32 {
2123
0
2224
}
23-
24-
//@ run-pass
25-
//@ exit-code: 0

tests/codegen/func_call.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
//! Test that the generated code correctly handles function calls
22
33
//@ aux-build:mini_core.rs
4+
//@ run-pass
5+
//@ exit-code: 1
46

57
// CHECK-LABEL: single
68
// CHECK: (int32_t {{[[:alnum:]_]*}})
@@ -23,6 +25,3 @@ pub fn single(a: i32) -> i32 {
2325
pub fn main() -> i32 {
2426
single(1)
2527
}
26-
27-
//@ run-pass
28-
//@ exit-code: 1

tests/codegen/params_count.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
//! Test that the generated code has the right number of parameters
22
33
//@ aux-build:mini_core.rs
4+
//@ run-pass
5+
//@ exit-code: 0
46

57
#![feature(no_core)]
68
#![no_core]
@@ -24,6 +26,3 @@ pub fn foo(_x: i32, _y: i32, _z: i32) -> i32 {
2426
pub fn main() -> i32 {
2527
0
2628
}
27-
28-
//@ run-pass
29-
//@ exit-code: 0

tests/codegen/ret_value.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
//! Test that we can return a value from a function
22
33
//@ aux-build:mini_core.rs
4+
//@ run-pass
5+
//@ exit-code: 42
46

57
#![feature(no_core)]
68
#![no_core]
@@ -14,6 +16,3 @@ extern crate mini_core;
1416
pub fn main() -> i32 {
1517
42
1618
}
17-
18-
//@ run-pass
19-
//@ exit-code: 42

0 commit comments

Comments
 (0)