summaryrefslogtreecommitdiffstats
path: root/clang/test/CoverageMapping/preprocessor.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/preprocessor.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/preprocessor.c')
-rw-r--r--clang/test/CoverageMapping/preprocessor.c45
1 files changed, 0 insertions, 45 deletions
diff --git a/clang/test/CoverageMapping/preprocessor.c b/clang/test/CoverageMapping/preprocessor.c
deleted file mode 100644
index d64f1b0fd9a..00000000000
--- a/clang/test/CoverageMapping/preprocessor.c
+++ /dev/null
@@ -1,45 +0,0 @@
-// RUN: %clang_cc1 -fprofile-instr-generate -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only -main-file-name preprocessor.c %s | FileCheck %s
-
-void func() {
- int i = 0;
-#ifdef MACRO
- int x = i;
-#endif
-}
-
-// CHECK: func
-// CHECK: File 0, 3:13 -> 8:2 = #0 (HasCodeBefore = 0)
-// CHECK-NEXT: Skipped,File 0, 5:2 -> 7:2 = 0 (HasCodeBefore = 0)
-
-#if 0
- int g = 0;
-
- void bar() { }
-#endif
-
-int main() {
- int i = 0;
-#if 0
- if(i == 0) {
- i = 1;
- }
-#endif
-
-#if 1
- if(i == 0) {
- i = 1;
- }
-#else
- if(i == 1) {
- i = 0;
- }
-}
-#endif
- return 0;
-}
-
-// CHECK: main
-// CHECK-NEXT: File 0, 20:12 -> 39:2 = #0 (HasCodeBefore = 0)
-// CHECK-NEXT: Skipped,File 0, 22:2 -> 26:2 = 0 (HasCodeBefore = 0)
-// CHECK-NEXT: File 0, 29:14 -> 31:4 = #1 (HasCodeBefore = 0)
-// CHECK-NEXT: Skipped,File 0, 32:2 -> 37:2 = 0 (HasCodeBefore = 0)
OpenPOWER on IntegriCloud