forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#125787 - Oneirical:infinite-test-a-novel, r…
…=jieyouxu Migrate `bin-emit-no-symbols` `run-make` test to `rmake` Part of rust-lang#121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). try-job: x86_64-msvc try-job: armhf-gnu
- Loading branch information
Showing
5 changed files
with
39 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// When setting the crate type as a "bin" (in app.rs), | ||
// this could cause a bug where some symbols would not be | ||
// emitted in the object files. This has been fixed, and | ||
// this test checks that the correct symbols have been successfully | ||
// emitted inside the object files. | ||
// See https://github.com/rust-lang/rust/issues/51671 | ||
|
||
use run_make_support::{llvm_readobj, rustc}; | ||
|
||
fn main() { | ||
rustc().emit("obj").input("app.rs").run(); | ||
let out = llvm_readobj().input("app.o").arg("--symbols").run(); | ||
out.assert_stdout_contains("rust_begin_unwind"); | ||
out.assert_stdout_contains("rust_eh_personality"); | ||
out.assert_stdout_contains("__rg_oom"); | ||
} |
This file was deleted.
Oops, something went wrong.