about summary refs log tree commit diff
path: root/tests/ui/codegen/duplicated-path-in-error.rs
blob: fed93828ee2a6df331bc534a8bbd1277554918ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//@ revisions: musl gnu
//@ only-linux
//@ ignore-cross-compile because this relies on host libc behaviour
//@ compile-flags: -Zcodegen-backend=/non-existing-one.so
//@[gnu] only-gnu
//@[musl] only-musl

// This test ensures that the error of the "not found dylib" doesn't duplicate
// the path of the dylib.
//
// glibc and musl have different dlopen error messages, so the expected error
// message differs between the two.

fn main() {}

//~? ERROR couldn't load codegen backend /non-existing-one.so