llvm/llvm/unittests/ADT/IListTest.cpp

//===- unittests/ADT/IListTest.cpp - ilist unit tests ---------------------===//
//
// 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/ilist.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/ilist_node.h"
#include "gtest/gtest.h"
#include <ostream>

usingnamespacellvm;

namespace {

struct Node : ilist_node<Node> {};

TEST(IListTest, Basic) {}

TEST(IListTest, cloneFrom) {}

TEST(IListTest, SpliceOne) {}

TEST(IListTest, SpliceSwap) {}

TEST(IListTest, SpliceSwapOtherWay) {}

TEST(IListTest, UnsafeClear) {}

struct NodeWithCallback : ilist_node<NodeWithCallback> {};

} // end namespace

namespace llvm {
// These nodes are stack-allocated for testing purposes, so don't let the ilist
// own or delete them.
template <> struct ilist_alloc_traits<NodeWithCallback> {};

template <> struct ilist_callback_traits<NodeWithCallback> {};
} // end namespace llvm

namespace {

TEST(IListTest, addNodeToList) {}

TEST(IListTest, sameListSplice) {}

struct PrivateNode : private ilist_node<PrivateNode> {};

TEST(IListTest, privateNode) {}

} // end namespace