//===- llvm/unittest/ADT/DeltaAlgorithmTest.cpp ---------------------------===// // // 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/DeltaAlgorithm.h" #include "gtest/gtest.h" #include <algorithm> #include <cstdarg> usingnamespacellvm; namespace std { std::ostream &operator<<(std::ostream &OS, const std::set<unsigned> &S) { … } } namespace { class FixedDeltaAlgorithm final : public DeltaAlgorithm { … }; std::set<unsigned> fixed_set(unsigned N, ...) { … } std::set<unsigned> range(unsigned Start, unsigned End) { … } std::set<unsigned> range(unsigned N) { … } TEST(DeltaAlgorithmTest, Basic) { … } }