add tests for imported_main
This commit is contained in:
parent
a40a100e4b
commit
b38d871eec
2 changed files with 9 additions and 0 deletions
8
src/tools/miri/tests/pass/imported_main.rs
Normal file
8
src/tools/miri/tests/pass/imported_main.rs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#![feature(imported_main)]
|
||||
|
||||
pub mod foo {
|
||||
pub fn mymain() {
|
||||
println!("Hello, world!");
|
||||
}
|
||||
}
|
||||
use foo::mymain as main;
|
||||
1
src/tools/miri/tests/pass/imported_main.stdout
Normal file
1
src/tools/miri/tests/pass/imported_main.stdout
Normal file
|
|
@ -0,0 +1 @@
|
|||
Hello, world!
|
||||
Loading…
Add table
Add a link
Reference in a new issue