summaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2014-02-13 19:51:13 +0000
committerReid Kleckner <reid@kleckner.net>2014-02-13 19:51:13 +0000
commitf2df02b3552dd3ad397362243bf589fdf9c6cc3c (patch)
tree7c05bbc4b22a1583a722dfe3946146d1eeb3df0a /unittests
parentfa9ce5c7919d7e2e72abc5e171936e99ab489441 (diff)
downloadllvm-f2df02b3552dd3ad397362243bf589fdf9c6cc3c.tar.gz
llvm-f2df02b3552dd3ad397362243bf589fdf9c6cc3c.tar.bz2
llvm-f2df02b3552dd3ad397362243bf589fdf9c6cc3c.tar.xz
Tweak an _MSC_VER ifdef to use typename with clang in a unittest
In theory, Clang should figure out how to parse this correctly without typename, but since this is the last TU that Clang falls back on in the self-host, I'm going to compromise and check for __clang__. And now Clang can self-host on -win32 without fallback! The 'check' and 'check-clang' targets both pass. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201358 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/ADT/DenseMapTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/ADT/DenseMapTest.cpp b/unittests/ADT/DenseMapTest.cpp
index 15eb6988f6..fa5d0f2e9e 100644
--- a/unittests/ADT/DenseMapTest.cpp
+++ b/unittests/ADT/DenseMapTest.cpp
@@ -119,7 +119,7 @@ TYPED_TEST(DenseMapTest, EmptyIntMapTest) {
// Lookup tests
EXPECT_FALSE(this->Map.count(this->getKey()));
EXPECT_TRUE(this->Map.find(this->getKey()) == this->Map.end());
-#ifndef _MSC_VER
+#if !defined(_MSC_VER) || defined(__clang__)
EXPECT_EQ(typename TypeParam::mapped_type(),
this->Map.lookup(this->getKey()));
#else