2025-06-10 18:36:22 +02:00
|
|
|
//@ revisions: musl gnu
|
2024-03-04 14:31:23 +01:00
|
|
|
//@ only-linux
|
2025-06-10 18:36:22 +02:00
|
|
|
//@ ignore-cross-compile because this relies on host libc behaviour
|
2024-03-04 14:31:23 +01:00
|
|
|
//@ compile-flags: -Zcodegen-backend=/non-existing-one.so
|
2025-06-10 18:36:22 +02:00
|
|
|
//@[gnu] only-gnu
|
|
|
|
|
//@[musl] only-musl
|
2024-03-04 14:31:23 +01:00
|
|
|
|
|
|
|
|
// This test ensures that the error of the "not found dylib" doesn't duplicate
|
|
|
|
|
// the path of the dylib.
|
2025-06-10 18:36:22 +02:00
|
|
|
//
|
|
|
|
|
// glibc and musl have different dlopen error messages, so the expected error
|
|
|
|
|
// message differs between the two.
|
2024-03-04 14:31:23 +01:00
|
|
|
|
|
|
|
|
fn main() {}
|
2025-03-23 15:50:51 +03:00
|
|
|
|
|
|
|
|
//~? ERROR couldn't load codegen backend /non-existing-one.so
|