llvm/llvm/unittests/ADT/ImmutableListTest.cpp

//===--------- ImmutableListTest.cpp - ImmutableList 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/ImmutableList.h"
#include "gtest/gtest.h"

usingnamespacellvm;

namespace {

template <typename Fundamental> struct Wrapper : llvm::FoldingSetNode {};

class ImmutableListTest : public testing::Test {};

void concat(const ImmutableList<Wrapper<char>> &L, char *Buffer) {}

TEST_F(ImmutableListTest, EmptyIntListTest) {}

TEST_F(ImmutableListTest, OneElemIntListTest) {}

// We'll store references to objects of this type.
struct Unmodifiable {};

// Mostly just a check whether ImmutableList::iterator can be instantiated
// with a reference type as a template argument.
TEST_F(ImmutableListTest, ReferenceStoringTest) {}

TEST_F(ImmutableListTest, CreatingIntListTest) {}

TEST_F(ImmutableListTest, MultiElemIntListTest) {}

template <typename Fundamental>
struct ExplicitCtorWrapper : public Wrapper<Fundamental> {};

TEST_F(ImmutableListTest, EmplaceIntListTest) {}

TEST_F(ImmutableListTest, CharListOrderingTest) {}

TEST_F(ImmutableListTest, LongListOrderingTest) {}

static_assert;

} // namespace