diff options
author | Vedant Kumar <vsk@apple.com> | 2017-08-04 01:22:19 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2017-08-04 01:22:19 +0000 |
commit | d4151aa47c598a5d1f1ec1a167fc4f3f5797de7a (patch) | |
tree | 0aa51627a6e40f61d16c3fc7bc862e7d242c4785 /test/profile | |
parent | 8293838e866814d904640f6359954d00852f2421 (diff) | |
download | compiler-rt-d4151aa47c598a5d1f1ec1a167fc4f3f5797de7a.tar.gz |
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
Diffstat (limited to 'test/profile')
-rw-r--r-- | test/profile/Inputs/extern_template.h | 2 | ||||
-rw-r--r-- | test/profile/Linux/coverage_test.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
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 <typename T> 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|} |