Make included files insert before main files (#6899)

This is so that the last file is more likely what we're trying to
compile in tests. Just splitting out the churn-y change of reordering.

Assisted-by: Google Antigravity with Gemini
This commit is contained in:
Jon Ross-Perkins
2026-03-12 21:01:16 +00:00
committed by GitHub
parent 4df2b6ea9d
commit 610094ccfd
14 changed files with 2700 additions and 2700 deletions
+2 -2
View File
@@ -104,10 +104,10 @@ static auto CollectOutputIfCapturing(TestFile& test_file) -> void {
auto RunTestFile(const FileTestBase& test_base, bool dump_output,
TestFile& test_file) -> ErrorOr<Success> {
llvm::SmallVector<TestFile::Split*> all_splits;
for (auto& split : test_file.file_splits) {
for (auto& split : test_file.include_file_splits) {
all_splits.push_back(&split);
}
for (auto& split : test_file.include_file_splits) {
for (auto& split : test_file.file_splits) {
all_splits.push_back(&split);
}