diff options
Diffstat (limited to 'llvm/test/tools/llvm-cov/showTemplateInstantiations.cpp')
-rw-r--r-- | llvm/test/tools/llvm-cov/showTemplateInstantiations.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/llvm/test/tools/llvm-cov/showTemplateInstantiations.cpp b/llvm/test/tools/llvm-cov/showTemplateInstantiations.cpp index 2ae7b1a7709..77ecb473400 100644 --- a/llvm/test/tools/llvm-cov/showTemplateInstantiations.cpp +++ b/llvm/test/tools/llvm-cov/showTemplateInstantiations.cpp @@ -1,5 +1,5 @@ -// RUN: llvm-cov show %S/Inputs/templateInstantiations.covmapping -instr-profile %S/Inputs/templateInstantiations.profdata -filename-equivalence %s | FileCheck -check-prefix=CHECK -check-prefix=ALL %s -// RUN: llvm-cov show %S/Inputs/templateInstantiations.covmapping -instr-profile %S/Inputs/templateInstantiations.profdata -filename-equivalence -name=_Z4funcIbEiT_ %s | FileCheck -check-prefix=CHECK -check-prefix=FILTER %s +// RUN: llvm-cov show %S/Inputs/templateInstantiations.covmapping -instr-profile %S/Inputs/templateInstantiations.profdata -filename-equivalence %s | FileCheck -check-prefixes=SHARED,ALL %s +// RUN: llvm-cov show %S/Inputs/templateInstantiations.covmapping -instr-profile %S/Inputs/templateInstantiations.profdata -filename-equivalence -name=_Z4funcIbEiT_ %s | FileCheck -check-prefixes=SHARED,FILTER %s // before coverage // ALL: | [[@LINE]]|// before // FILTER-NOT: | [[@LINE-1]]|// before @@ -12,14 +12,14 @@ int func(T x) { // ALL-NEXT: 2| [[@LINE]]|int func(T x) { int j = 1; // ALL-NEXT: 0| [[@LINE]]| int j = 1; } // ALL-NEXT: 2| [[@LINE]]|} - // CHECK: {{^ *(\| )?}}_Z4funcIbEiT_: - // CHECK-NEXT: 1| [[@LINE-9]]|int func(T x) { - // CHECK-NEXT: 1| [[@LINE-9]]| if(x) - // CHECK-NEXT: 1| [[@LINE-9]]| return 0; - // CHECK-NEXT: 1| [[@LINE-9]]| else - // CHECK-NEXT: 0| [[@LINE-9]]| return 1; - // CHECK-NEXT: 0| [[@LINE-9]]| int j = 1; - // CHECK-NEXT: 1| [[@LINE-9]]|} + // SHARED: {{^ *(\| )?}}_Z4funcIbEiT_: + // SHARED-NEXT: 1| [[@LINE-9]]|int func(T x) { + // SHARED-NEXT: 1| [[@LINE-9]]| if(x) + // SHARED-NEXT: 1| [[@LINE-9]]| return 0; + // SHARED-NEXT: 1| [[@LINE-9]]| else + // SHARED-NEXT: 0| [[@LINE-9]]| return 1; + // SHARED-NEXT: 0| [[@LINE-9]]| int j = 1; + // SHARED-NEXT: 1| [[@LINE-9]]|} // ALL: {{^ *}}| _Z4funcIiEiT_: // FILTER-NOT: {{^ *(\| )?}} _Z4funcIiEiT_: |