blob: 5a79874b5674554bf760084e996d90dd429e21a9 [file] [log] [blame]
Peter Collingbourne9d9e1fc2013-05-27 21:40:20 +00001// RUN: touch %t.o
2
3// RUN: %clang -target i386-unknown-linux --dyld-prefix /foo -### %t.o 2>&1 | FileCheck --check-prefix=CHECK-32 %s
Saleem Abdulrasool6f8442b2016-05-23 02:17:28 +00004// CHECK-32: "-dynamic-linker" "/foo{{(/usr/i386-unknown-linux)?}}/lib/ld-linux.so.2"
Peter Collingbourne9d9e1fc2013-05-27 21:40:20 +00005
6// RUN: %clang -target x86_64-unknown-linux --dyld-prefix /foo -### %t.o 2>&1 | FileCheck --check-prefix=CHECK-64 %s
Saleem Abdulrasool6f8442b2016-05-23 02:17:28 +00007// CHECK-64: "-dynamic-linker" "/foo{{(/usr/x86_64-unknown-linux)?}}/lib{{(64)?}}/ld-linux-x86-64.so.2"
Zinovy Nis1db95732014-07-10 15:27:19 +00008
9// RUN: %clang -target x86_64-unknown-linux-gnux32 --dyld-prefix /foo -### %t.o 2>&1 | FileCheck --check-prefix=CHECK-X32 %s
Saleem Abdulrasool6f8442b2016-05-23 02:17:28 +000010// CHECK-X32: "-dynamic-linker" "/foo{{(/x86_64-unknown-linux-gnux32)?}}/lib{{(x32)?}}/ld-linux-x32.so.2"