Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita2e7e79

Browse files
committed
Port c-link-to-rust-va-list-fn to Rust
1 parent3349155 commita2e7e79

File tree

3 files changed

+21
-8
lines changed

3 files changed

+21
-8
lines changed

‎src/tools/tidy/src/allowed_run_make_makefiles.txt‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ run-make/c-dynamic-dylib/Makefile
1212
run-make/c-dynamic-rlib/Makefile
1313
run-make/c-link-to-rust-dylib/Makefile
1414
run-make/c-link-to-rust-staticlib/Makefile
15-
run-make/c-link-to-rust-va-list-fn/Makefile
1615
run-make/c-static-dylib/Makefile
1716
run-make/c-static-rlib/Makefile
1817
run-make/c-unwind-abi-catch-lib-panic/Makefile

‎tests/run-make/c-link-to-rust-va-list-fn/Makefile‎

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// test.c and its static library checkrust.rs make use of variadic functions (VaList).
2+
// This test checks that the use of this feature does not
3+
// prevent the creation of a functional binary.
4+
// See https://github.com/rust-lang/rust/pull/49878
5+
6+
//@ ignore-cross-compile
7+
8+
use run_make_support::{cc, extra_c_flags, run, rustc, static_lib};
9+
10+
fnmain(){
11+
rustc()
12+
.input("checkrust.rs")
13+
.run();
14+
cc()
15+
.input("test.c")
16+
.input(static_lib("checkrust"))
17+
.out_exe("test")
18+
.args(&extra_c_flags())
19+
.run();
20+
run("test");
21+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp