]> git.lizzy.rs Git - rust.git/blob - tests/ui/linkage-attr/link-cfg-works.rs
Rollup merge of #104965 - zacklukem:p-option-as_ref-docs, r=scottmcm
[rust.git] / tests / ui / linkage-attr / link-cfg-works.rs
1 // run-pass
2 // aux-build:link-cfg-works-transitive-rlib.rs
3 // aux-build:link-cfg-works-transitive-dylib.rs
4
5 #![feature(link_cfg)]
6
7 extern crate link_cfg_works_transitive_dylib;
8 extern crate link_cfg_works_transitive_rlib;
9
10 #[link(name = "foo", cfg(foo))]
11 extern "C" {}
12
13 fn main() {}