2020-03-17 19:10:56 -07: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-30 04:02:05 +00:00
|
|
|
// ignore-fuchsia - missing __libc_start_main for some reason (#84733)
|
2022-04-12 15:00:44 +02:00
|
|
|
// ignore-cross-compile - default-linker-libraries=yes doesn't play well with cross compiling
|
2020-03-17 19:10:56 -07:00
|
|
|
|
|
|
|
#[link(name = "some-random-non-existent-library", kind = "static")]
|
|
|
|
extern "C" {}
|
|
|
|
|
|
|
|
fn main() {}
|