llvm/llvm/unittests/ADT/SequenceTest.cpp

//===- SequenceTest.cpp - Unit tests for a sequence abstraciton -----------===//
//
// 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/Sequence.h"
#include "llvm/ADT/STLExtras.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"

#include <algorithm>
#include <numeric>

usingnamespacellvm;

ElementsAre;
IsEmpty;

namespace // namespace

namespace llvm {

template <> struct enum_iteration_traits<UntypedEnum> {};

template <> struct enum_iteration_traits<TypedEnum> {};

template <> struct enum_iteration_traits<X::ScopedEnum> {};

template <> struct enum_iteration_traits<S::NestedEnum> {};

template <> struct enum_iteration_traits<S::NestedEnum3> {};

} // namespace llvm

namespace {

TEST(StrongIntTest, Enums) {}

TEST(SequenceTest, IterableEnums) {}

TEST(SequenceTest, NonIterableEnums) {}

// Reproducer for https://github.com/llvm/llvm-project/issues/61122
TEST(SequenceTest, CorrectReferenceType) {}

} // namespace