stdin.carbon 806 B

12345678910111213141516171819202122232425262728293031
  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. // AUTOUPDATE
  5. // TIP: To test this file alone, run:
  6. // TIP: bazel test //testing/file_test:file_test_base_test --test_arg=--file_tests=testing/file_test/testdata/stdin.carbon
  7. // TIP: To dump output, run:
  8. // TIP: bazel run //testing/file_test:file_test_base_test -- --dump_output --file_tests=testing/file_test/testdata/stdin.carbon
  9. // --- a.carbon
  10. // --- STDIN
  11. S
  12. t
  13. d
  14. i
  15. n
  16. // --- AUTOUPDATE-SPLIT
  17. // CHECK:STDERR: --- STDIN:
  18. // CHECK:STDERR:
  19. // CHECK:STDERR: S
  20. // CHECK:STDERR: t
  21. // CHECK:STDERR: d
  22. // CHECK:STDERR: i
  23. // CHECK:STDERR: n
  24. // CHECK:STDERR:
  25. // CHECK:STDOUT: 2 args: `default_args`, `a.carbon`