2020-03-17 21:10:56 -05:00
|
|
|
// run-pass
|
|
|
|
// compile-flags: -Zlink-native-libraries=no -Cdefault-linker-libraries=yes
|
|
|
|
// ignore-windows - this will probably only work on unixish systems
|
2021-04-29 23:02:05 -05:00
|
|
|
// ignore-fuchsia - missing __libc_start_main for some reason (#84733)
|
2022-04-12 08:00:44 -05:00
|
|
|
// ignore-cross-compile - default-linker-libraries=yes doesn't play well with cross compiling
|
2020-03-17 21:10:56 -05:00
|
|
|
|
|
|
|
#[link(name = "some-random-non-existent-library", kind = "static")]
|
|
|
|
extern "C" {}
|
|
|
|
|
|
|
|
fn main() {}
|