summaryrefslogtreecommitdiffstats
path: root/clang/test/CoverageMapping/return.c
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2014-08-09 03:55:09 +0000
committerJustin Bogner <mail@justinbogner.com>2014-08-09 03:55:09 +0000
commita0101074fd8447028909dfb38efcb583f0204c84 (patch)
treefe74855e8c265ac64e7ef0fee04775bef7ff6e1d /clang/test/CoverageMapping/return.c
parent996a0ef99eb84da6e908866b6a451371adcdae04 (diff)
downloadbcm5719-llvm-a0101074fd8447028909dfb38efcb583f0204c84.tar.gz
bcm5719-llvm-a0101074fd8447028909dfb38efcb583f0204c84.zip
Revert "Add tests for coverage mapping generation."
I reverted one of the added tests from r215261 in r215274, since it was failing on quite a few bots. It looks like this wasn't sufficient, as we're still getting failures on windows, like the following: http://bb.pgr.jp/builders/ninja-x64-msvc-RA-centos6/builds/5378 I'm reverting this entire commit so the bots aren't blocked on these failures. This reverts commit r215261. llvm-svn: 215278
Diffstat (limited to 'clang/test/CoverageMapping/return.c')
-rw-r--r--clang/test/CoverageMapping/return.c63
1 files changed, 0 insertions, 63 deletions
diff --git a/clang/test/CoverageMapping/return.c b/clang/test/CoverageMapping/return.c
deleted file mode 100644
index a58f8961363..00000000000
--- a/clang/test/CoverageMapping/return.c
+++ /dev/null
@@ -1,63 +0,0 @@
-// RUN: %clang_cc1 -fprofile-instr-generate -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only -main-file-name return.c %s | FileCheck %s
-
-void func() {
- return;
- int i = 0;
-}
-
-// CHECK: func
-// CHECK: File 0, 3:13 -> 6:2 = #0 (HasCodeBefore = 0)
-// CHECK-NEXT: File 0, 5:3 -> 5:12 = 0 (HasCodeBefore = 0)
-
-void func2() {
- for(int i = 0; i < 10; ++i) {
- if(i > 2) {
- return;
- } else {
- int j = 0;
- }
- if(i == 3) {
- int j = 1;
- } else {
- int j = 2;
- }
- }
-}
-
-// CHECK-NEXT: func2
-// CHECK-NEXT: File 0, 12:14 -> 25:2 = #0 (HasCodeBefore = 0)
-// CHECK-NEXT: File 0, 13:18 -> 13:24 = ((#0 + #1) - #2) (HasCodeBefore = 0)
-// CHECK-NEXT: File 0, 13:26 -> 13:29 = (#1 - #2) (HasCodeBefore = 0)
-// CHECK-NEXT: File 0, 13:31 -> 24:4 = #1 (HasCodeBefore = 0)
-// CHECK-NEXT: File 0, 14:15 -> 16:6 = #2 (HasCodeBefore = 0)
-// CHECK-NEXT: File 0, 16:12 -> 21:11 = (#1 - #2) (HasCodeBefore = 0)
-// CHECK-NEXT: File 0, 19:16 -> 21:6 = #3 (HasCodeBefore = 0)
-// CHECK-NEXT: File 0, 21:12 -> 23:6 = ((#1 - #2) - #3) (HasCodeBefore = 0)
-
-void func3(int x) {
- if(x > 5) {
- while(x >= 9) {
- return;
- --x;
- }
- int i = 0;
- }
- int j = 0;
-}
-
-// CHECK-NEXT: func3
-// CHECK-NEXT: File 0, 37:19 -> 46:2 = #0 (HasCodeBefore = 0)
-// CHECK-NEXT: File 0, 38:13 -> 44:4 = #1 (HasCodeBefore = 0)
-// CHECK-NEXT: File 0, 39:11 -> 39:17 = #1 (HasCodeBefore = 0)
-// CHECK-NEXT: File 0, 39:19 -> 42:6 = #2 (HasCodeBefore = 0)
-// CHECK-NEXT: File 0, 41:7 -> 41:10 = 0 (HasCodeBefore = 0)
-// CHECK-NEXT: File 0, 43:5 -> 43:14 = (#1 - #2) (HasCodeBefore = 0)
-// CHECK-NEXT: File 0, 45:3 -> 45:12 = (#0 - #2) (HasCodeBefore = 0)
-
-int main() {
- func();
- func2();
- for(int i = 0; i < 10; ++i)
- func3(i);
- return 0;
-}
OpenPOWER on IntegriCloud