This adds the `only-apple`/`ignore-apple` compiletest directive, and uses that basically everywhere instead of `only-macos`/`ignore-macos`. Some of the updates in `run-make` are a bit redundant, as they use `ignore-cross-compile` and won't run on iOS - but using Apple in these is still more correct, so I've made that change anyhow.
19 lines
482 B
Rust
19 lines
482 B
Rust
//@ run-pass
|
|
// Test for issue #18804, #[linkage] does not propagate through generic
|
|
// functions. Failure results in a linker error.
|
|
|
|
//@ ignore-emscripten no weak symbol support
|
|
//@ ignore-windows no extern_weak linkage
|
|
//@ ignore-apple no extern_weak linkage
|
|
|
|
//@ aux-build:lib.rs
|
|
|
|
// rust-lang/rust#56772: nikic says we need this to be proper test.
|
|
//@ compile-flags: -C no-prepopulate-passes -C passes=name-anon-globals
|
|
|
|
extern crate lib;
|
|
|
|
fn main() {
|
|
lib::foo::<i32>();
|
|
}
|