llvm/llvm/unittests/ADT/DenseMapTest.cpp

//===- llvm/unittest/ADT/DenseMapMap.cpp - DenseMap unit tests --*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include "llvm/ADT/DenseMap.h"
#include "CountCopyAndMove.h"
#include "llvm/ADT/DenseMapInfo.h"
#include "llvm/ADT/DenseMapInfoVariant.h"
#include "llvm/ADT/StringRef.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include <map>
#include <set>
#include <utility>
#include <variant>

usingnamespacellvm;

namespace // namespace

namespace {
struct A {};
struct B : public A {};

struct AlwaysEqType {};
} // namespace

namespace llvm {
DenseMapInfo<T, std::enable_if_t<std::is_base_of_v<A, T>>>;

template <> struct DenseMapInfo<AlwaysEqType> {};
} // namespace llvm

namespace {
TEST(DenseMapCustomTest, SFINAEMapInfo) {}

TEST(DenseMapCustomTest, VariantSupport) {}

// Test that gTest prints map entries as pairs instead of opaque objects.
// See third-party/unittest/googletest/internal/custom/gtest-printers.h
TEST(DenseMapCustomTest, PairPrinting) {}

} // namespace