Skip to content

Commit 1cc97d0

Browse files
committed
rewrite extern-fn-generic to rmake
1 parent 9f77dca commit 1cc97d0

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-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
@@ -26,7 +26,6 @@ run-make/export-executable-symbols/Makefile
2626
run-make/extern-diff-internal-name/Makefile
2727
run-make/extern-flag-disambiguates/Makefile
2828
run-make/extern-fn-explicit-align/Makefile
29-
run-make/extern-fn-generic/Makefile
3029
run-make/extern-fn-mangle/Makefile
3130
run-make/extern-fn-reachable/Makefile
3231
run-make/extern-fn-struct-passing-abi/Makefile

tests/run-make/extern-fn-generic/Makefile

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Generic types in foreign-function interfaces were introduced in #15831 - this
2+
// test simply runs a Rust program containing generics that is also reliant on
3+
// a C library, and checks that compilation and execution are successful.
4+
// See https://github.com/rust-lang/rust/pull/15831
5+
//@ ignore-cross-compile
6+
// Reason: the compiled binary is executed
7+
8+
use run_make_support::{build_native_static_lib, run, rustc};
9+
10+
fn main() {
11+
build_native_static_lib("test");
12+
rustc().input("testcrate.rs").run();
13+
rustc().input("test.rs").run();
14+
run("test");
15+
}

0 commit comments

Comments
 (0)