1*f4a2713aSLionel Sambuc // Test coverage ld flags. 2*f4a2713aSLionel Sambuc // 3*f4a2713aSLionel Sambuc // RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \ 4*f4a2713aSLionel Sambuc // RUN: -target i386-unknown-linux --coverage \ 5*f4a2713aSLionel Sambuc // RUN: -resource-dir=%S/Inputs/resource_dir \ 6*f4a2713aSLionel Sambuc // RUN: --sysroot=%S/Inputs/basic_linux_tree \ 7*f4a2713aSLionel Sambuc // RUN: | FileCheck --check-prefix=CHECK-LINUX-I386 %s 8*f4a2713aSLionel Sambuc // 9*f4a2713aSLionel Sambuc // CHECK-LINUX-I386: "{{(.*[^-.0-9A-Z_a-z])?}}ld{{(.exe)?}}" 10*f4a2713aSLionel Sambuc // CHECK-LINUX-I386: "{{.*}}/Inputs/resource_dir{{/|\\\\}}lib{{/|\\\\}}linux{{/|\\\\}}libclang_rt.profile-i386.a" {{.*}} "-lc" 11*f4a2713aSLionel Sambuc // 12*f4a2713aSLionel Sambuc // RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \ 13*f4a2713aSLionel Sambuc // RUN: -target x86_64-unknown-linux --coverage \ 14*f4a2713aSLionel Sambuc // RUN: -resource-dir=%S/Inputs/resource_dir \ 15*f4a2713aSLionel Sambuc // RUN: --sysroot=%S/Inputs/basic_linux_tree \ 16*f4a2713aSLionel Sambuc // RUN: | FileCheck --check-prefix=CHECK-LINUX-X86-64 %s 17*f4a2713aSLionel Sambuc // 18*f4a2713aSLionel Sambuc // CHECK-LINUX-X86-64: "{{(.*[^-.0-9A-Z_a-z])?}}ld{{(.exe)?}}" 19*f4a2713aSLionel Sambuc // CHECK-LINUX-X86-64: "{{.*}}/Inputs/resource_dir{{/|\\\\}}lib{{/|\\\\}}linux{{/|\\\\}}libclang_rt.profile-x86_64.a" {{.*}} "-lc" 20