1f4a2713aSLionel Sambuc // REQUIRES: shell-preserves-root 2f4a2713aSLionel Sambuc 3f4a2713aSLionel Sambuc // RUN: touch %t.o 4f4a2713aSLionel Sambuc 5f4a2713aSLionel Sambuc // RUN: %clang -target i386-unknown-linux --dyld-prefix /foo -### %t.o 2>&1 | FileCheck --check-prefix=CHECK-32 %s 6f4a2713aSLionel Sambuc // CHECK-32: "-dynamic-linker" "/foo/lib/ld-linux.so.2" 7f4a2713aSLionel Sambuc 8f4a2713aSLionel Sambuc // RUN: %clang -target x86_64-unknown-linux --dyld-prefix /foo -### %t.o 2>&1 | FileCheck --check-prefix=CHECK-64 %s 9f4a2713aSLionel Sambuc // CHECK-64: "-dynamic-linker" "/foo/lib64/ld-linux-x86-64.so.2" 10*0a6a1f1dSLionel Sambuc 11*0a6a1f1dSLionel Sambuc // RUN: %clang -target x86_64-unknown-linux-gnux32 --dyld-prefix /foo -### %t.o 2>&1 | FileCheck --check-prefix=CHECK-X32 %s 12*0a6a1f1dSLionel Sambuc // CHECK-X32: "-dynamic-linker" "/foo/libx32/ld-linux-x32.so.2" 13