mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 22:02:23 +01:00
This is a simplification of the construction, although somewhat limiting (it means that the caller can't register the same file multiple times, though I stopped doing that anyways since it was causing confusion). What this more importantly _allows_ is logic on the FileTestBase child itself that's not test-specific -- in particular, autoupdate functionality which wouldn't use RUN_ALL_TESTS. --------- Co-authored-by: Chandler Carruth <chandlerc@gmail.com>
27 lines
679 B
C++
27 lines
679 B
C++
// 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 <string>
|
|
|
|
#include "llvm/ADT/SmallVector.h"
|
|
#include "toolchain/driver/driver_file_test_base.h"
|
|
|
|
namespace Carbon::Testing {
|
|
namespace {
|
|
|
|
class CodeGenFileTest : public DriverFileTestBase {
|
|
public:
|
|
using DriverFileTestBase::DriverFileTestBase;
|
|
|
|
auto GetDefaultArgs() -> llvm::SmallVector<std::string> override {
|
|
CARBON_FATAL() << "ARGS is always set in these tests";
|
|
}
|
|
};
|
|
|
|
} // namespace
|
|
|
|
CARBON_FILE_TEST_FACTORY(CodeGenFileTest);
|
|
|
|
} // namespace Carbon::Testing
|