]> git.lizzy.rs Git - rust.git/blob - tests/run-pass-valgrind/osx-frameworks.rs
Rollup merge of #106717 - klensy:typo, r=lcnr
[rust.git] / tests / 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 "C" {
10     fn CFRunLoopGetTypeID() -> libc::c_ulong;
11 }
12
13 #[cfg(target_os = "macos")]
14 pub fn main() {
15     unsafe {
16         CFRunLoopGetTypeID();
17     }
18 }
19
20 #[cfg(not(target_os = "macos"))]
21 pub fn main() {}