summaryrefslogtreecommitdiffstats
path: root/clang/test/CoverageMapping/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CoverageMapping/test.c')
-rw-r--r--clang/test/CoverageMapping/test.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/clang/test/CoverageMapping/test.c b/clang/test/CoverageMapping/test.c
deleted file mode 100644
index 4d42245f1f5..00000000000
--- a/clang/test/CoverageMapping/test.c
+++ /dev/null
@@ -1,44 +0,0 @@
-// RUN: %clang_cc1 -fprofile-instr-generate -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only -main-file-name test.c %s | FileCheck %s
-
-void bar();
-static void static_func();
-
-int main() {
- for(int i = 0; i < 10; ++i) {
- bar();
- }
- static_func();
- return 0;
-}
-
-// CHECK: main
-// CHECK-NEXT: File 0, 6:12 -> 12:2 = #0 (HasCodeBefore = 0)
-// CHECK-NEXT: File 0, 7:18 -> 7:24 = (#0 + #1) (HasCodeBefore = 0)
-// CHECK-NEXT: File 0, 7:26 -> 7:29 = #1 (HasCodeBefore = 0)
-// CHECK-NEXT: File 0, 7:31 -> 9:4 = #1 (HasCodeBefore = 0)
-
-void foo() {
- if(1) {
- int i = 0;
- }
-}
-
-// CHECK-NEXT: foo
-// CHECK-NEXT: File 0, 20:12 -> 24:2 = #0 (HasCodeBefore = 0)
-// CHECK-NEXT: File 0, 21:9 -> 23:4 = #1 (HasCodeBefore = 0)
-
-void bar() {
-}
-
-// CHECK-NEXT: bar
-// CHECK-NEXT: File 0, 30:12 -> 31:2 = #0 (HasCodeBefore = 0)
-
-void static_func() { }
-
-// CHECK-NEXT: static_func
-// CHECK: File 0, 36:20 -> 36:23 = #0 (HasCodeBefore = 0)
-
-static void func() { }
-
-// CHECK-NEXT: func
-// CHECK: File 0, 41:20 -> 41:23 = 0 (HasCodeBefore = 0)
OpenPOWER on IntegriCloud