codegen_file_test.cpp 861 B

12345678910111213141516171819202122232425262728293031
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. #include <filesystem>
  5. #include <string>
  6. #include "llvm/ADT/SmallVector.h"
  7. #include "llvm/ADT/StringRef.h"
  8. #include "toolchain/driver/driver_file_test_base.h"
  9. namespace Carbon::Testing {
  10. namespace {
  11. class CodeGenFileTest : public DriverFileTestBase {
  12. public:
  13. using DriverFileTestBase::DriverFileTestBase;
  14. auto GetDefaultArgs() -> llvm::SmallVector<std::string> override {
  15. CARBON_FATAL() << "ARGS is always set in these tests";
  16. }
  17. };
  18. } // namespace
  19. auto RegisterFileTests(const llvm::SmallVector<std::filesystem::path>& paths)
  20. -> void {
  21. CodeGenFileTest::RegisterTests<CodeGenFileTest>("CodeGenFileTest", paths);
  22. }
  23. } // namespace Carbon::Testing