mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
14 lines
286 B
Rust
14 lines
286 B
Rust
//@ run-pass
|
|
//@ aux-build:link-cfg-works-transitive-rlib.rs
|
|
//@ aux-build:link-cfg-works-transitive-dylib.rs
|
|
|
|
#![feature(link_cfg)]
|
|
|
|
extern crate link_cfg_works_transitive_dylib;
|
|
extern crate link_cfg_works_transitive_rlib;
|
|
|
|
#[link(name = "foo", cfg(foo))]
|
|
extern "C" {}
|
|
|
|
fn main() {}
|