about summary refs log tree commit diff
path: root/tests/run-make/extern-fn-generic/rmake.rs
blob: 05de839a1b0d83b2ddda05c2cea44368820640f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Generic types in foreign-function interfaces were introduced in #15831 - this
// test simply runs a Rust program containing generics that is also reliant on
// a C library, and checks that compilation and execution are successful.
// See https://github.com/rust-lang/rust/pull/15831

//@ ignore-cross-compile
// Reason: the compiled binary is executed

use run_make_support::{build_native_static_lib, run, rustc};

fn main() {
    build_native_static_lib("test");
    rustc().input("testcrate.rs").run();
    rustc().input("test.rs").run();
    run("test");
}