]> git.lizzy.rs Git - rust.git/blob - src/test/run-pass-valgrind/osx-frameworks.rs
Auto merge of #57018 - dcreager:redundant-linker, r=alexcrichton
[rust.git] / src / test / run-pass-valgrind / osx-frameworks.rs
1 // no-prefer-dynamic
2 // pretty-expanded FIXME #23616
3
4 #![feature(rustc_private)]
5
6 extern crate libc;
7
8 #[cfg(target_os = "macos")]
9 #[link(name = "CoreFoundation", kind = "framework")]
10 extern {
11     fn CFRunLoopGetTypeID() -> libc::c_ulong;
12 }
13
14 #[cfg(target_os = "macos")]
15 pub fn main() {
16     unsafe { CFRunLoopGetTypeID(); }
17 }
18
19 #[cfg(not(target_os = "macos"))]
20 pub fn main() {}