]> git.lizzy.rs Git - rust.git/blob - src/test/run-pass-valgrind/osx-frameworks.rs
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[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 "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() {}