Skip to content

Commit

Permalink
add tests for imported_main
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Feb 11, 2024
1 parent a40a100 commit b38d871
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/tools/miri/tests/pass/imported_main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#![feature(imported_main)]

pub mod foo {
pub fn mymain() {
println!("Hello, world!");
}
}
use foo::mymain as main;
1 change: 1 addition & 0 deletions src/tools/miri/tests/pass/imported_main.stdout
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello, world!

0 comments on commit b38d871

Please sign in to comment.