xref: /minix3/external/bsd/llvm/dist/clang/test/Driver/dyld-prefix.c (revision 0b98e8aad89f2bd4ba80b523d73cf29e9dd82ce1)
1 // REQUIRES: shell-preserves-root
2 
3 // RUN: touch %t.o
4 
5 // RUN: %clang -target i386-unknown-linux --dyld-prefix /foo -### %t.o 2>&1 | FileCheck --check-prefix=CHECK-32 %s
6 // CHECK-32: "-dynamic-linker" "/foo/lib/ld-linux.so.2"
7 
8 // RUN: %clang -target x86_64-unknown-linux --dyld-prefix /foo -### %t.o 2>&1 | FileCheck --check-prefix=CHECK-64 %s
9 // CHECK-64: "-dynamic-linker" "/foo/lib64/ld-linux-x86-64.so.2"
10