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