capture_console_output.carbon 798 B

12345678910111213141516
  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. // SET-CAPTURE-CONSOLE-OUTPUT
  5. // AUTOUPDATE
  6. // TIP: To test this file alone, run:
  7. // TIP: bazel test //testing/file_test:file_test_base_test --test_arg=--file_tests=testing/file_test/testdata/capture_console_output.carbon
  8. // TIP: To dump output, run:
  9. // TIP: bazel run //testing/file_test:file_test_base_test -- --dump_output --file_tests=testing/file_test/testdata/capture_console_output.carbon
  10. // CHECK:STDERR: params.error_stream
  11. // CHECK:STDERR: llvm::errs
  12. // CHECK:STDOUT: 2 args: `default_args`, `capture_console_output.carbon`
  13. // CHECK:STDOUT: params.output_stream
  14. // CHECK:STDOUT: llvm::outs