| 12345678910111213141516171819202122 |
- // 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
- //
- // Exclude the prelude import so that the number of prelude files isn't tested.
- // ARGS: --include-diagnostic-kind compile --output=%t --no-prelude-import foo.carbon bar.carbon
- //
- // SET-CAPTURE-CONSOLE-OUTPUT
- // clang-format off
- // AUTOUPDATE
- // TIP: To test this file alone, run:
- // TIP: bazel test //toolchain/testing:file_test --test_arg=--file_tests=toolchain/driver/testdata/multi_input_with_output.carbon
- // TIP: To dump output, run:
- // TIP: bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/driver/testdata/multi_input_with_output.carbon
- // CHECK:STDERR: warning: only outputting bar.carbon to {{.+}}/temp_file, skipping output of 1 input file; pass `--output-last-input-only` to silence this warning [CompileMultipleInputsWithOutput]
- // CHECK:STDERR:
- // --- foo.carbon
- library "[[@TEST_NAME]]";
- // --- bar.carbon
- library "[[@TEST_NAME]]";
|