Allow repeated includes, particularly for min_prelude (#5741)

Make min_prelude parts include what they use, and remove the inclusions
which were for indirect uses from the main min_prelude files.
This commit is contained in:
Jon Ross-Perkins
2025-06-26 21:59:55 +00:00
committed by GitHub
parent c3b0c2e425
commit 49212feac6
11 changed files with 36 additions and 18 deletions
+16
View File
@@ -0,0 +1,16 @@
// 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-FILE: testing/file_test/testdata/include_files/no_split.carbon
// INCLUDE-FILE: testing/file_test/testdata/include_files/no_split.carbon
// INCLUDE-FILE: testing/file_test/testdata/include_files/no_split.carbon
//
// AUTOUPDATE
// TIP: To test this file alone, run:
// TIP: bazel test //testing/file_test:file_test_base_test --test_arg=--file_tests=testing/file_test/testdata/include_repeated.carbon
// TIP: To dump output, run:
// TIP: bazel run //testing/file_test:file_test_base_test -- --dump_output --file_tests=testing/file_test/testdata/include_repeated.carbon
// CHECK:STDOUT: 3 args: `default_args`, `include_repeated.carbon`, `include_files/no_split.carbon`
// CHECK:STDOUT: include_files/no_split.carbon:5: no split