2020-03-17 21:10:56 -05:00
|
|
|
// run-pass
|
2023-02-04 17:07:41 -06:00
|
|
|
// compile-flags: -Zlink-directives=no
|
2020-03-17 21:10:56 -05:00
|
|
|
// 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() {}
|