/
githubmirror
/
carbon-lang
Обзор
Документация
Войти
/
githubmirror
/
carbon-lang
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
testing/base/gtest_main.cpp
17 строк
563 B
Chandler Carruth
Refactor testing exe path and benchmark main handling. (#4216)
14 авг 2024, 20:50
Не верифицирован
14 авг 2024, 20:50
72cb9d0
Код
Авторство
О чём код?
// Part of the Carbon Language project, under the Apache License v2.0 with LLVM // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception #include <gtest/gtest.h> #include "common/init_llvm.h" #include "testing/base/global_exe_path.h" auto main(int argc, char** argv) -> int { // Initialize LLVM first, as that will also handle ensuring UTF-8 encoding. Carbon::InitLLVM init_llvm(argc, argv); Carbon::Testing::SetExePath(argv[0]); testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); }