blob: cbb7dd4724105e3e48156807b943a1c2db5969b5 [file] [log] [blame]
Chandler Carruth36381702013-06-23 11:28:48 +00001// Test coverage ld flags.
2//
3// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
4// RUN: -target i386-unknown-linux --coverage \
5// RUN: -resource-dir=%S/Inputs/resource_dir \
6// RUN: --sysroot=%S/Inputs/basic_linux_tree \
7// RUN: | FileCheck --check-prefix=CHECK-LINUX-I386 %s
8//
9// CHECK-LINUX-I386: "{{(.*[^-.0-9A-Z_a-z])?}}ld{{(.exe)?}}"
NAKAMURA Takumif5a240b2013-06-24 13:19:20 +000010// CHECK-LINUX-I386: "{{.*}}/Inputs/resource_dir{{/|\\\\}}lib{{/|\\\\}}linux{{/|\\\\}}libclang_rt.profile-i386.a" {{.*}} "-lc"
Chandler Carruth36381702013-06-23 11:28:48 +000011//
12// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
13// RUN: -target x86_64-unknown-linux --coverage \
14// RUN: -resource-dir=%S/Inputs/resource_dir \
15// RUN: --sysroot=%S/Inputs/basic_linux_tree \
16// RUN: | FileCheck --check-prefix=CHECK-LINUX-X86-64 %s
17//
18// CHECK-LINUX-X86-64: "{{(.*[^-.0-9A-Z_a-z])?}}ld{{(.exe)?}}"
NAKAMURA Takumif5a240b2013-06-24 13:19:20 +000019// CHECK-LINUX-X86-64: "{{.*}}/Inputs/resource_dir{{/|\\\\}}lib{{/|\\\\}}linux{{/|\\\\}}libclang_rt.profile-x86_64.a" {{.*}} "-lc"