summaryrefslogtreecommitdiff
path: root/unittests/Support/DebugCounterTest.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2019-01-19 10:01:25 +0000
committerDimitry Andric <dim@FreeBSD.org>2019-01-19 10:01:25 +0000
commitd8e91e46262bc44006913e6796843909f1ac7bcd (patch)
tree7d0c143d9b38190e0fa0180805389da22cd834c5 /unittests/Support/DebugCounterTest.cpp
parentb7eb8e35e481a74962664b63dfb09483b200209a (diff)
Notes
Diffstat (limited to 'unittests/Support/DebugCounterTest.cpp')
-rw-r--r--unittests/Support/DebugCounterTest.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/unittests/Support/DebugCounterTest.cpp b/unittests/Support/DebugCounterTest.cpp
index f3c2817a22e1d..32bf56c9f2fba 100644
--- a/unittests/Support/DebugCounterTest.cpp
+++ b/unittests/Support/DebugCounterTest.cpp
@@ -14,10 +14,9 @@
using namespace llvm;
#ifndef NDEBUG
-DEBUG_COUNTER(TestCounter, "test-counter",
- "Counter used for unit test");
-
TEST(DebugCounterTest, CounterCheck) {
+ DEBUG_COUNTER(TestCounter, "test-counter", "Counter used for unit test");
+
EXPECT_FALSE(DebugCounter::isCounterSet(TestCounter));
auto DC = &DebugCounter::instance();