diff options
Diffstat (limited to 'compiler-rt/test/profile/Linux/coverage_test.cpp')
-rw-r--r-- | compiler-rt/test/profile/Linux/coverage_test.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/compiler-rt/test/profile/Linux/coverage_test.cpp b/compiler-rt/test/profile/Linux/coverage_test.cpp index 1443279419c..26f385b2d31 100644 --- a/compiler-rt/test/profile/Linux/coverage_test.cpp +++ b/compiler-rt/test/profile/Linux/coverage_test.cpp @@ -2,11 +2,16 @@ // RUN: env LLVM_PROFILE_FILE=%t.profraw %run %t // RUN: llvm-profdata merge -o %t.profdata %t.profraw // RUN: llvm-cov show %t -instr-profile %t.profdata -filename-equivalence 2>&1 | FileCheck %s -// +// Testing PIE // RUN: %clang_profgen -fuse-ld=gold -O2 -fdata-sections -ffunction-sections -fPIE -pie -fprofile-instr-generate -fcoverage-mapping -Wl,--gc-sections -o %t.pie %s // RUN: env LLVM_PROFILE_FILE=%t.pie.profraw %run %t.pie // RUN: llvm-profdata merge -o %t.pie.profdata %t.pie.profraw // RUN: llvm-cov show %t.pie -instr-profile %t.pie.profdata -filename-equivalence 2>&1 | FileCheck %s +// testing m32 +// RUN: %clang_profgen -fuse-ld=gold -O2 -fdata-sections -ffunction-sections -fPIE -pie -fprofile-instr-generate -fcoverage-mapping -m32 -Wl,--gc-sections -o %t.32.pie %s +// RUN: env LLVM_PROFILE_FILE=%t.32.pie.profraw %run %t.32.pie +// RUN: llvm-profdata merge -o %t.32.pie.profdata %t.32.pie.profraw +// RUN: llvm-cov show %t.32.pie -instr-profile %t.32.pie.profdata -filename-equivalence 2>&1 | FileCheck %s void foo(bool cond) { // CHECK: 1| [[@LINE]]|void foo( if (cond) { // CHECK: 1| [[@LINE]]| if (cond) { |