llvm.org GIT mirror llvm / 74bef67
[unittest/ReverseIteration] Unbreak when compiling with GCC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312579 91177308-0d34-0410-b5e6-96231b3b80d8 Davide Italiano 2 years ago
1 changed file(s) with 6 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
1010 //
1111 //===---------------------------------------------------------------------===//
1212
13 #include "llvm/Support/ReverseIteration.h"
1314 #include "llvm/ADT/DenseMap.h"
14 #include "llvm/Support/ReverseIteration.h"
15 #include "llvm/ADT/DenseMapInfo.h"
1516 #include "gtest/gtest.h"
1617
1718 using namespace llvm;
5657 // Define a pointer-like int.
5758 struct PtrLikeInt { int value; };
5859
60 namespace llvm {
61
5962 template<> struct DenseMapInfo {
6063 static PtrLikeInt *getEmptyKey() {
6164 static PtrLikeInt EmptyKey;
7578 return LHS == RHS;
7679 }
7780 };
81
82 } // end namespace llvm
7883
7984 TEST(ReverseIterationTest, DenseMapTest2) {
8085 static_assert(detail::IsPointerLike::value,