parse_tree_file_test.cpp 692 B

1234567891011121314151617181920212223242526
  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 ParseTreeFileTest : public DriverFileTestBase {
  10. public:
  11. using DriverFileTestBase::DriverFileTestBase;
  12. auto GetDefaultArgs() -> llvm::SmallVector<std::string> override {
  13. return {"compile", "--phase=parse", "--dump-parse-tree", "%s"};
  14. }
  15. };
  16. } // namespace
  17. CARBON_FILE_TEST_FACTORY(ParseTreeFileTest);
  18. } // namespace Carbon::Testing