diff options
Diffstat (limited to 'clang/test/CoverageMapping/templates.cpp')
| -rw-r--r-- | clang/test/CoverageMapping/templates.cpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/clang/test/CoverageMapping/templates.cpp b/clang/test/CoverageMapping/templates.cpp deleted file mode 100644 index a8e194f85c1..00000000000 --- a/clang/test/CoverageMapping/templates.cpp +++ /dev/null @@ -1,33 +0,0 @@ -// RUN: %clang_cc1 -fprofile-instr-generate -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only -main-file-name templates.cpp %s | FileCheck %s - -template<typename T> -void unused(T x) { - return; -} - -template<typename T> -int func(T x) { - if(x) - return 0; - else - return 1; - int j = 1; -} - -// CHECK: func -// CHECK-NEXT: File 0, 9:15 -> 15:2 = #0 (HasCodeBefore = 0) -// CHECK-NEXT: File 0, 11:5 -> 11:13 = #1 (HasCodeBefore = 0) -// CHECK-NEXT: File 0, 13:5 -> 13:13 = (#0 - #1) (HasCodeBefore = 0) -// CHECK-NEXT: File 0, 14:3 -> 14:12 = 0 (HasCodeBefore = 0) - -// CHECK-NEXT: func -// CHECK-NEXT: File 0, 9:15 -> 15:2 = #0 (HasCodeBefore = 0) -// CHECK-NEXT: File 0, 11:5 -> 11:13 = #1 (HasCodeBefore = 0) -// CHECK-NEXT: File 0, 13:5 -> 13:13 = (#0 - #1) (HasCodeBefore = 0) -// CHECK-NEXT: File 0, 14:3 -> 14:12 = 0 (HasCodeBefore = 0) - -int main() { - func<int>(0); - func<bool>(true); - return 0; -} |

