//===- unittests/ADT/IListSentinelTest.cpp - ilist_sentinel 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_node.h" #include "gtest/gtest.h" usingnamespacellvm; namespace { template <class T, class... Options> struct PickSentinel { … }; class Node : public ilist_node<Node> { … }; class TrackingNode : public ilist_node<Node, ilist_sentinel_tracking<true>> { … }; Sentinel; TrackingSentinel; NoTrackingSentinel; struct LocalAccess : ilist_detail::NodeAccess { … }; TEST(IListSentinelTest, DefaultConstructor) { … } TEST(IListSentinelTest, NormalNodeIsNotKnownSentinel) { … } } // end namespace