summaryrefslogtreecommitdiffstats
path: root/clang/test/CoverageMapping/trycatch.cpp
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2016-06-22 19:57:58 +0000
committerVedant Kumar <vsk@apple.com>2016-06-22 19:57:58 +0000
commit049908b2969f56aba6daf6fb4eb98a4a518ef13a (patch)
treea1ba3c2c8e2ba4c3feafbe2a9267cc3d84775937 /clang/test/CoverageMapping/trycatch.cpp
parent30afae1a75ea895b3be6bd5f04d8f3c6f6703617 (diff)
downloadbcm5719-llvm-049908b2969f56aba6daf6fb4eb98a4a518ef13a.tar.gz
bcm5719-llvm-049908b2969f56aba6daf6fb4eb98a4a518ef13a.zip
[Coverage] Push a new region when handling CXXTryStmts
Push a new region for the try block and propagate execution counts through it. This ensures that catch statements get a region counter distinct from the try block's counter. llvm-svn: 273463
Diffstat (limited to 'clang/test/CoverageMapping/trycatch.cpp')
-rw-r--r--clang/test/CoverageMapping/trycatch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CoverageMapping/trycatch.cpp b/clang/test/CoverageMapping/trycatch.cpp
index e3a3f09c9f9..01d8fb93074 100644
--- a/clang/test/CoverageMapping/trycatch.cpp
+++ b/clang/test/CoverageMapping/trycatch.cpp
@@ -23,7 +23,7 @@ void func(int i) { // CHECK-NEXT: File 0, [[@LINE]]:18 -> {{[
// CHECK-NEXT: main
int main() { // CHECK-NEXT: File 0, [[@LINE]]:12 -> [[@LINE+13]]:2 = #0
int j = 1;
- try {
+ try { // CHECK-NEXT: File 0, [[@LINE]]:7 -> [[@LINE+2]]:4 = #0
func(j);
} catch(const Error &e) { // CHECK-NEXT: File 0, [[@LINE]]:27 -> [[@LINE+2]]:4 = #2
j = 1;
OpenPOWER on IntegriCloud