//===- unittests/Driver/GCCVersionTest.cpp --- GCCVersion parser 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 // //===----------------------------------------------------------------------===// // // Unit tests for Generic_GCC::GCCVersion // //===----------------------------------------------------------------------===// #include "../../lib/Driver/ToolChains/Gnu.h" #include "llvm/Config/llvm-config.h" // for LLVM_BUILD_LLVM_DYLIB, LLVM_BUILD_SHARED_LIBS #include "gtest/gtest.h" // The Generic_GCC class is hidden in dylib/shared library builds, so // this test can only be built if neither of those configurations are // enabled. #if !defined(LLVM_BUILD_LLVM_DYLIB) && !defined(LLVM_BUILD_SHARED_LIBS) usingnamespaceclang; usingnamespaceclang::driver; namespace { struct VersionParseTest { … }; const VersionParseTest TestCases[] = …; TEST(GCCVersionTest, Parse) { … } } // end anonymous namespace #endif