Files
rust/tests/run-make/linker-warning/main.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
260 B
Rust
Raw Normal View History

2025-07-06 20:15:56 +02:00
unsafe extern "C" {
#[cfg(only_foo)]
fn does_not_exist(p: *const u8) -> *const foo::Foo;
#[cfg(not(only_foo))]
fn does_not_exist(p: *const bar::Bar) -> *const foo::Foo;
}
fn main() {
let _ = unsafe { does_not_exist(core::ptr::null()) };
}