forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
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#125662 - Oneirical:more-tests-again, r=jiey…
…ouxu Rewrite `fpic`, `simple-dylib` and `issue-37893` `run-make` tests in `rmake.rs` or ui test format 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).
- Loading branch information
Showing
14 changed files
with
43 additions
and
32 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
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,15 @@ | ||
// a.rs is a procedural macro crate, on which b.rs and c.rs depend. A now | ||
// patched bug caused a compilation failure if the proc-macro crate was | ||
// initialized with its dependents in this exact order. This test checks | ||
// that compilation succeeds even when initialization is done in this order. | ||
// See https://github.com/rust-lang/rust/issues/37893 | ||
|
||
//@ ignore-cross-compile | ||
|
||
use run_make_support::rustc; | ||
|
||
fn main() { | ||
rustc().input("a.rs").run(); | ||
rustc().input("b.rs").run(); | ||
rustc().input("c.rs").run(); | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,12 @@ | ||
// `-z text` caused the linker to error if there were any non-position-independent | ||
// code (PIC) sections. This test checks that this no longer happens. | ||
// See https://github.com/rust-lang/rust/pull/39803 | ||
|
||
//@ ignore-windows | ||
//@ ignore-macos | ||
//@ ignore-cross-compile | ||
|
||
//@ compile-flags: -Clink-args=-Wl,-z,text | ||
//@ run-pass | ||
|
||
fn main() {} |
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,4 @@ | ||
//@ compile-flags: -Cprefer-dynamic | ||
|
||
#![crate_type = "dylib"] | ||
pub fn bar() {} |
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,12 @@ | ||
// A simple test, where foo.rs has a dependency | ||
// on the dynamic library simple-dylib.rs. If the test passes, | ||
// dylibs can be built and linked into another file successfully.. | ||
|
||
//@ aux-crate:bar=simple-dylib.rs | ||
//@ run-pass | ||
|
||
extern crate bar; | ||
|
||
fn main() { | ||
bar::bar(); | ||
} |