-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #125026 - Oneirical:clink-tests, r=jieyouxu
Migrate `run-make/c-link-to-rust-va-list-fn` to `rmake` Part of #121876. r? `@jieyouxu`
- Loading branch information
Showing
3 changed files
with
18 additions
and
8 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 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,18 @@ | ||
// test.c and its static library checkrust.rs make use of variadic functions (VaList). | ||
// This test checks that the use of this feature does not | ||
// prevent the creation of a functional binary. | ||
// See https://github.com/rust-lang/rust/pull/49878 | ||
|
||
//@ ignore-cross-compile | ||
|
||
use run_make_support::{cc, extra_c_flags, run, rustc, static_lib}; | ||
|
||
fn main() { | ||
rustc().input("checkrust.rs").run(); | ||
cc().input("test.c") | ||
.input(static_lib("checkrust")) | ||
.out_exe("test") | ||
.args(&extra_c_flags()) | ||
.run(); | ||
run("test"); | ||
} |