about summary refs log tree commit diff
path: root/tests/run-make/extern-fn-with-union/rmake.rs
blob: 200602eabeb5c7bf3809f12e8690f5d7a33d0035 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// If an external function from foreign-function interface was called upon,
// its attributes would only be passed to LLVM if and only if it was called in the same crate.
// This caused passing around unions to be incorrect.
// See https://github.com/rust-lang/rust/pull/14191

//@ 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("ctest");
    rustc().input("testcrate.rs").run();
    rustc().input("test.rs").run();
    run("test");
}