//===- llvm/unittest/ADT/DenseSetTest.cpp - DenseSet 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/DenseSet.h" #include "gtest/gtest.h" #include <type_traits> usingnamespacellvm; namespace … // anonymous namespace namespace llvm { // Specialization required to insert a CountCopyAndMove into a DenseSet. template <> struct DenseMapInfo<CountCopyAndMove> { … }; } namespace { // Make sure reserve actually gives us enough buckets to insert N items // without increasing allocation size. TEST(DenseSetCustomTest, ReserveTest) { … } TEST(DenseSetCustomTest, ConstTest) { … } }