semantics_file_test.cpp 763 B

123456789101112131415161718192021222324252627
  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 SemanticsFileTest : public DriverFileTestBase {
  10. public:
  11. using DriverFileTestBase::DriverFileTestBase;
  12. auto GetDefaultArgs() -> llvm::SmallVector<std::string> override {
  13. // TODO: Remove the "--include_raw" once the textual IR format stabilizes.
  14. return {"dump", "semantics-ir", "--include_raw", "%s"};
  15. }
  16. };
  17. } // namespace
  18. CARBON_FILE_TEST_FACTORY(SemanticsFileTest);
  19. } // namespace Carbon::Testing