summaryrefslogtreecommitdiffstats
path: root/clang/test/CoverageMapping/switch.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/switch.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/switch.c')
-rw-r--r--clang/test/CoverageMapping/switch.c80
1 files changed, 0 insertions, 80 deletions
diff --git a/clang/test/CoverageMapping/switch.c b/clang/test/CoverageMapping/switch.c
deleted file mode 100644
index 417adf38b4b..00000000000
--- a/clang/test/CoverageMapping/switch.c
+++ /dev/null
@@ -1,80 +0,0 @@
-// RUN: %clang_cc1 -fprofile-instr-generate -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only -main-file-name switch.c %s | FileCheck %s
-
-void foo(int i) {
- switch(i) {
- case 1:
- return;
- case 2:
- break;
- }
- int x = 0;
-}
-
-// CHECK: foo
-// CHECK-NEXT: File 0, 3:17 -> 11:2 = #0 (HasCodeBefore = 0)
-// CHECK-NEXT: File 0, 5:3 -> 6:11 = #2 (HasCodeBefore = 0)
-// CHECK-NEXT: File 0, 7:3 -> 8:10 = #3 (HasCodeBefore = 0)
-// CHECK-NEXT: File 0, 9:3 -> 10:12 = #1 (HasCodeBefore = 0)
-
-int main() {
- int i = 0;
- switch(i) {
- case 0:
- i = 1;
- break;
- case 1:
- i = 2;
- break;
- default:
- break;
- }
- switch(i) {
- case 0:
- i = 1;
- break;
- case 1:
- i = 2;
- default:
- break;
- }
-
-
- switch(i) {
- case 1:
- case 2:
- i = 11;
- case 3:
- case 4:
- i = 99;
- }
- switch(i) {
- case 1:
- return 1;
- break;
- case 2:
- break;
- }
-
- foo(1);
- return 0;
-}
-
-// CHECK-NEXT: main
-// CHECK-NEXT: File 0, 19:12 -> 60:2 = #0 (HasCodeBefore = 0)
-// CHECK-NEXT: File 0, 22:3 -> 24:10 = #2 (HasCodeBefore = 0)
-// CHECK-NEXT: File 0, 25:3 -> 27:10 = #3 (HasCodeBefore = 0)
-// CHECK-NEXT: File 0, 28:3 -> 29:10 = #4 (HasCodeBefore = 0)
-// CHECK-NEXT: File 0, 30:3 -> 31:14 = #1 (HasCodeBefore = 0)
-// CHECK-NEXT: File 0, 32:3 -> 34:10 = #6 (HasCodeBefore = 0)
-// CHECK-NEXT: File 0, 35:3 -> 36:10 = #7 (HasCodeBefore = 0)
-// CHECK-NEXT: File 0, 37:3 -> 38:10 = (#7 + #8) (HasCodeBefore = 0)
-// CHECK-NEXT: File 0, 39:3 -> 42:14 = #5 (HasCodeBefore = 0)
-// CHECK-NEXT: File 0, 43:3 -> 43:10 = #10 (HasCodeBefore = 0)
-// CHECK-NEXT: File 0, 44:3 -> 45:11 = (#10 + #11) (HasCodeBefore = 0)
-// CHECK-NEXT: File 0, 46:3 -> 46:10 = ((#10 + #11) + #12) (HasCodeBefore = 0)
-// CHECK-NEXT: File 0, 47:3 -> 48:11 = (((#10 + #11) + #12) + #13) (HasCodeBefore = 0)
-// CHECK-NEXT: File 0, 49:3 -> 50:14 = #9 (HasCodeBefore = 0)
-// CHECK-NEXT: File 0, 51:3 -> 52:13 = #15 (HasCodeBefore = 0)
-// CHECK-NEXT: File 0, 53:5 -> 53:10 = 0 (HasCodeBefore = 0)
-// CHECK-NEXT: File 0, 54:3 -> 55:10 = #16 (HasCodeBefore = 0)
-// CHECK-NEXT: File 0, 56:3 -> 59:11 = #14 (HasCodeBefore = 0)
OpenPOWER on IntegriCloud