check_file_test.cpp 821 B

1234567891011121314151617181920212223242526272829
  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 <string>
  5. #include "llvm/ADT/SmallVector.h"
  6. #include "toolchain/driver/driver_file_test_base.h"
  7. namespace Carbon::Testing {
  8. namespace {
  9. class CheckFileTest : public DriverFileTestBase {
  10. public:
  11. using DriverFileTestBase::DriverFileTestBase;
  12. auto GetDefaultArgs() -> llvm::SmallVector<std::string> override {
  13. // TODO: Remove the "--dump-raw-semantics-ir" once the textual IR format
  14. // stabilizes.
  15. return {"compile", "--phase=check", "--dump-raw-semantics-ir",
  16. "--dump-semantics-ir", "%s"};
  17. }
  18. };
  19. } // namespace
  20. CARBON_FILE_TEST_FACTORY(CheckFileTest);
  21. } // namespace Carbon::Testing