2013-06-23 19:28:48 +08:00
|
|
|
// Test coverage ld flags.
|
|
|
|
//
|
2020-05-09 14:13:19 +08:00
|
|
|
// RUN: %clang -no-canonical-prefixes %s -### 2>&1 \
|
|
|
|
// RUN: -target i386-unknown-linux -fprofile-arcs \
|
|
|
|
// RUN: -resource-dir=%S/Inputs/resource_dir \
|
|
|
|
// RUN: --sysroot=%S/Inputs/basic_linux_tree \
|
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-LINUX-I386 %s
|
|
|
|
//
|
|
|
|
// RUN: %clang -no-canonical-prefixes %s -### 2>&1 \
|
|
|
|
// RUN: -target i386-unknown-linux --coverage \
|
2013-06-23 19:28:48 +08:00
|
|
|
// RUN: -resource-dir=%S/Inputs/resource_dir \
|
|
|
|
// RUN: --sysroot=%S/Inputs/basic_linux_tree \
|
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-LINUX-I386 %s
|
|
|
|
//
|
2020-05-09 06:04:03 +08:00
|
|
|
// CHECK-LINUX-I386-NOT: "-u__llvm_profile_runtime"
|
2020-05-09 14:13:19 +08:00
|
|
|
// CHECK-LINUX-I386: /Inputs/resource_dir{{/|\\\\}}lib{{/|\\\\}}linux{{/|\\\\}}libclang_rt.profile-i386.a"
|
2020-05-09 06:04:03 +08:00
|
|
|
// CHECK-LINUX-I386-NOT: "-u__llvm_profile_runtime"
|
2020-05-09 14:13:19 +08:00
|
|
|
// CHECK-LINUX-I386: "-lc"
|
2013-06-23 19:28:48 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
2017-01-08 18:04:07 +08:00
|
|
|
// RUN: -target x86_64-unknown-linux --coverage -fuse-ld=ld \
|
2013-06-23 19:28:48 +08:00
|
|
|
// RUN: -resource-dir=%S/Inputs/resource_dir \
|
|
|
|
// RUN: --sysroot=%S/Inputs/basic_linux_tree \
|
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-LINUX-X86-64 %s
|
|
|
|
//
|
|
|
|
// CHECK-LINUX-X86-64: "{{(.*[^-.0-9A-Z_a-z])?}}ld{{(.exe)?}}"
|
2014-03-29 01:53:17 +08:00
|
|
|
// CHECK-LINUX-X86-64: "{{.*}}/Inputs/resource_dir{{/|\\\\}}lib{{/|\\\\}}linux{{/|\\\\}}libclang_rt.profile-x86_64.a" {{.*}} "-lc"
|
|
|
|
//
|
2014-02-20 21:57:37 +08:00
|
|
|
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
2017-01-08 18:04:07 +08:00
|
|
|
// RUN: -target x86_64-unknown-freebsd --coverage -fuse-ld=ld \
|
2014-02-20 21:57:37 +08:00
|
|
|
// RUN: -resource-dir=%S/Inputs/resource_dir \
|
|
|
|
// RUN: --sysroot=%S/Inputs/basic_freebsd64_tree \
|
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-FREEBSD-X86-64 %s
|
|
|
|
//
|
|
|
|
// CHECK-FREEBSD-X86-64: "{{(.*[^-.0-9A-Z_a-z])?}}ld{{(.exe)?}}"
|
|
|
|
// CHECK-FREEBSD-X86-64: "{{.*}}/Inputs/resource_dir{{/|\\\\}}lib{{/|\\\\}}freebsd{{/|\\\\}}libclang_rt.profile-x86_64.a"
|
2015-01-29 07:23:36 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
2017-01-08 18:04:07 +08:00
|
|
|
// RUN: -target arm-linux-androideabi --coverage -fuse-ld=ld \
|
2015-01-29 07:23:36 +08:00
|
|
|
// RUN: -resource-dir=%S/Inputs/resource_dir \
|
|
|
|
// RUN: --sysroot=%S/Inputs/basic_android_tree/sysroot \
|
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-ANDROID-ARM %s
|
|
|
|
//
|
2015-03-26 04:17:20 +08:00
|
|
|
// CHECK-ANDROID-ARM: "{{(.*[^.0-9A-Z_a-z])?}}ld{{(.exe)?}}"
|
2015-01-29 07:23:36 +08:00
|
|
|
// CHECK-ANDROID-ARM: "{{.*}}/Inputs/resource_dir{{/|\\\\}}lib{{/|\\\\}}linux{{/|\\\\}}libclang_rt.profile-arm-android.a"
|