//=======- CallGraphTest.cpp - Unit tests for the CG analysis -------------===// // // 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/Analysis/CallGraph.h" #include "llvm/IR/LLVMContext.h" #include "llvm/IR/Module.h" #include "gtest/gtest.h" usingnamespacellvm; namespace { template <typename Ty> void canSpecializeGraphTraitsIterators(Ty *G) { … } TEST(CallGraphTest, GraphTraitsSpecialization) { … } TEST(CallGraphTest, GraphTraitsConstSpecialization) { … } }