1*0a6a1f1dSLionel Sambuc // RUN: %clang %s -### \ 2*0a6a1f1dSLionel Sambuc // RUN: -target x86_64-unknown-freebsd 2>&1 \ 3*0a6a1f1dSLionel Sambuc // RUN: | FileCheck %s --check-prefix=CHECK-FREEBSD-LD 4*0a6a1f1dSLionel Sambuc // CHECK-FREEBSD-LD: ld 5*0a6a1f1dSLionel Sambuc 6*0a6a1f1dSLionel Sambuc // RUN: %clang %s -### -fuse-ld=bfd \ 7*0a6a1f1dSLionel Sambuc // RUN: --sysroot=%S/Inputs/basic_freebsd_tree \ 8*0a6a1f1dSLionel Sambuc // RUN: -target x86_64-unknown-freebsd \ 9*0a6a1f1dSLionel Sambuc // RUN: -B%S/Inputs/basic_freebsd_tree/usr/bin 2>&1 \ 10*0a6a1f1dSLionel Sambuc // RUN: | FileCheck %s -check-prefix=CHECK-FREEBSD-BFD 11*0a6a1f1dSLionel Sambuc // CHECK-FREEBSD-BFD: Inputs/basic_freebsd_tree/usr/bin{{/|\\+}}ld.bfd 12*0a6a1f1dSLionel Sambuc 13*0a6a1f1dSLionel Sambuc // RUN: %clang %s -### -fuse-ld=gold \ 14*0a6a1f1dSLionel Sambuc // RUN: --sysroot=%S/Inputs/basic_freebsd_tree \ 15*0a6a1f1dSLionel Sambuc // RUN: -target x86_64-unknown-freebsd \ 16*0a6a1f1dSLionel Sambuc // RUN: -B%S/Inputs/basic_freebsd_tree/usr/bin 2>&1 \ 17*0a6a1f1dSLionel Sambuc // RUN: | FileCheck %s -check-prefix=CHECK-FREEBSD-GOLD 18*0a6a1f1dSLionel Sambuc // CHECK-FREEBSD-GOLD: Inputs/basic_freebsd_tree/usr/bin{{/|\\+}}ld.gold 19*0a6a1f1dSLionel Sambuc 20*0a6a1f1dSLionel Sambuc // RUN: %clang %s -### -fuse-ld=plib \ 21*0a6a1f1dSLionel Sambuc // RUN: --sysroot=%S/Inputs/basic_freebsd_tree \ 22*0a6a1f1dSLionel Sambuc // RUN: -target x86_64-unknown-freebsd \ 23*0a6a1f1dSLionel Sambuc // RUN: -B%S/Inputs/basic_freebsd_tree/usr/bin 2>&1 \ 24*0a6a1f1dSLionel Sambuc // RUN: | FileCheck %s -check-prefix=CHECK-FREEBSD-PLIB 25*0a6a1f1dSLionel Sambuc // CHECK-FREEBSD-PLIB: error: invalid linker name 26*0a6a1f1dSLionel Sambuc 27*0a6a1f1dSLionel Sambuc 28*0a6a1f1dSLionel Sambuc 29*0a6a1f1dSLionel Sambuc // RUN: %clang %s -### \ 30*0a6a1f1dSLionel Sambuc // RUN: -target arm-linux-androideabi \ 31*0a6a1f1dSLionel Sambuc // RUN: -B%S/Inputs/basic_android_tree/bin 2>&1 \ 32*0a6a1f1dSLionel Sambuc // RUN: | FileCheck %s --check-prefix=CHECK-ANDROID-ARM-LD 33*0a6a1f1dSLionel Sambuc // CHECK-ANDROID-ARM-LD: Inputs/basic_android_tree/bin{{/|\\+}}arm-linux-androideabi-ld 34*0a6a1f1dSLionel Sambuc 35*0a6a1f1dSLionel Sambuc // RUN: %clang %s -### -fuse-ld=bfd \ 36*0a6a1f1dSLionel Sambuc // RUN: -target arm-linux-androideabi \ 37*0a6a1f1dSLionel Sambuc // RUN: -B%S/Inputs/basic_android_tree/bin 2>&1 \ 38*0a6a1f1dSLionel Sambuc // RUN: | FileCheck %s -check-prefix=CHECK-ANDROID-ARM-BFD 39*0a6a1f1dSLionel Sambuc // CHECK-ANDROID-ARM-BFD: Inputs/basic_android_tree/bin{{/|\\+}}arm-linux-androideabi-ld.bfd 40*0a6a1f1dSLionel Sambuc 41*0a6a1f1dSLionel Sambuc // RUN: %clang %s -### -fuse-ld=gold \ 42*0a6a1f1dSLionel Sambuc // RUN: -target arm-linux-androideabi \ 43*0a6a1f1dSLionel Sambuc // RUN: -B%S/Inputs/basic_android_tree/bin 2>&1 \ 44*0a6a1f1dSLionel Sambuc // RUN: | FileCheck %s -check-prefix=CHECK-ANDROID-ARM-GOLD 45*0a6a1f1dSLionel Sambuc // CHECK-ANDROID-ARM-GOLD: Inputs/basic_android_tree/bin{{/|\\+}}arm-linux-androideabi-ld.gold 46*0a6a1f1dSLionel Sambuc 47*0a6a1f1dSLionel Sambuc // RUN: %clang %s -### \ 48*0a6a1f1dSLionel Sambuc // RUN: -target arm-linux-androideabi \ 49*0a6a1f1dSLionel Sambuc // RUN: -gcc-toolchain %S/Inputs/basic_android_tree 2>&1 \ 50*0a6a1f1dSLionel Sambuc // RUN: | FileCheck %s --check-prefix=CHECK-ANDROID-ARM-LD-TC 51*0a6a1f1dSLionel Sambuc // CHECK-ANDROID-ARM-LD-TC: Inputs/basic_android_tree/lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin{{/|\\+}}ld 52*0a6a1f1dSLionel Sambuc 53*0a6a1f1dSLionel Sambuc // RUN: %clang %s -### -fuse-ld=bfd \ 54*0a6a1f1dSLionel Sambuc // RUN: -target arm-linux-androideabi \ 55*0a6a1f1dSLionel Sambuc // RUN: -gcc-toolchain %S/Inputs/basic_android_tree 2>&1 \ 56*0a6a1f1dSLionel Sambuc // RUN: | FileCheck %s -check-prefix=CHECK-ANDROID-ARM-BFD-TC 57*0a6a1f1dSLionel Sambuc // CHECK-ANDROID-ARM-BFD-TC: Inputs/basic_android_tree/lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin{{/|\\+}}ld.bfd 58*0a6a1f1dSLionel Sambuc 59*0a6a1f1dSLionel Sambuc // RUN: %clang %s -### -fuse-ld=gold \ 60*0a6a1f1dSLionel Sambuc // RUN: -target arm-linux-androideabi \ 61*0a6a1f1dSLionel Sambuc // RUN: -gcc-toolchain %S/Inputs/basic_android_tree 2>&1 \ 62*0a6a1f1dSLionel Sambuc // RUN: | FileCheck %s -check-prefix=CHECK-ANDROID-ARM-GOLD-TC 63*0a6a1f1dSLionel Sambuc // CHECK-ANDROID-ARM-GOLD-TC: Inputs/basic_android_tree/lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin{{/|\\+}}ld.gold 64