blob: 7272e7691c33aea8162d4abf2d31288a6f19a5c4 [file] [log] [blame]
// Copyright 2025 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// A trivial program to verify that linking against a system framework on Macos works.
#[link(name = "CoreFoundation", kind = "framework")]
extern "C" {
fn CFLocaleGetSystem() -> *const ::std::os::raw::c_void;
}
fn main() {
unsafe {
let _ = CFLocaleGetSystem();
println!("Success!");
}
}