From 696e3847dd5723d94335adf65435dc1de229a3b7 Mon Sep 17 00:00:00 2001 From: Vedant Kumar Date: Fri, 4 Aug 2017 01:22:19 +0000 Subject: [PATCH] coverage: Update tests to reflect changes from r310012 llvm-svn: 310015 --- compiler-rt/test/profile/Inputs/extern_template.h | 2 +- compiler-rt/test/profile/Linux/coverage_test.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler-rt/test/profile/Inputs/extern_template.h b/compiler-rt/test/profile/Inputs/extern_template.h index aa59f6c1e600..d08592da07e7 100644 --- a/compiler-rt/test/profile/Inputs/extern_template.h +++ b/compiler-rt/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/compiler-rt/test/profile/Linux/coverage_test.cpp b/compiler-rt/test/profile/Linux/coverage_test.cpp index db9a14e26e3c..439c6382f9bd 100644 --- a/compiler-rt/test/profile/Linux/coverage_test.cpp +++ b/compiler-rt/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|}