From d4151aa47c598a5d1f1ec1a167fc4f3f5797de7a Mon Sep 17 00:00:00 2001 From: Vedant Kumar Date: Fri, 4 Aug 2017 01:22:19 +0000 Subject: coverage: Update tests to reflect changes from r310012 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@310015 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/profile/Inputs/extern_template.h | 2 +- test/profile/Linux/coverage_test.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/profile/Inputs/extern_template.h b/test/profile/Inputs/extern_template.h index aa59f6c1e..d08592da0 100644 --- a/test/profile/Inputs/extern_template.h +++ b/test/profile/Inputs/extern_template.h @@ -3,7 +3,7 @@ template struct Test { void doIt(int N) { // CHECK: [[@LINE]]| 2| void doIt if (N > 10) { // CHECK: [[@LINE]]| 2| if (N > 10) { M += 2; // CHECK: [[@LINE]]| 1| M += 2; - } else // CHECK: [[@LINE]]| 1| } else + } else // CHECK: [[@LINE]]| 2| } else M -= 2; // CHECK: [[@LINE]]| 1| M -= 2; } T M; diff --git a/test/profile/Linux/coverage_test.cpp b/test/profile/Linux/coverage_test.cpp index db9a14e26..439c6382f 100644 --- a/test/profile/Linux/coverage_test.cpp +++ b/test/profile/Linux/coverage_test.cpp @@ -19,7 +19,7 @@ void foo(bool cond) { // CHECK: [[@LINE]]| 1|void foo( if (cond) { // CHECK: [[@LINE]]| 1| if (cond) { - } // CHECK: [[@LINE]]| 0| } + } // CHECK: [[@LINE]]| 1| } } // CHECK: [[@LINE]]| 1|} void bar() { // CHECK: [[@LINE]]| 1|void bar() { } // CHECK: [[@LINE]]| 1|} -- cgit v1.2.3