Skip to content

Commit 034cbfa

Browse files
committed
rewrite extern-fn-generic to rmake
1 parent a05a7df commit 034cbfa

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
@@ -23,7 +23,6 @@ run-make/export-executable-symbols/Makefile
2323
run-make/extern-diff-internal-name/Makefile
2424
run-make/extern-flag-disambiguates/Makefile
2525
run-make/extern-fn-explicit-align/Makefile
26-
run-make/extern-fn-generic/Makefile
2726
run-make/extern-fn-mangle/Makefile
2827
run-make/extern-fn-reachable/Makefile
2928
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)