//===--- utils/unittest/UnitTestMain/TestMain.cpp - unittest driver -------===// // // 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/Support/CommandLine.h" #include "llvm/Support/Signals.h" #include "gmock/gmock.h" #include "gtest/gtest.h" #include <stdlib.h> #if defined(_WIN32) # include <windows.h> # if defined(_MSC_VER) # include <crtdbg.h> # endif #endif const char *TestMainArgv0; int main(int argc, char **argv) { … }