escaping.carbon 883 B

12345678910111213141516171819
  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/escaping.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/escaping.carbon
  10. // CHECK:STDERR: carriage return{{\r}}
  11. // CHECK:STDERR: {one brace}
  12. // CHECK:STDERR: {{\{\{}}two braces}}
  13. // CHECK:STDERR: [one bracket]
  14. // CHECK:STDERR: {{\[\[}}two brackets]]
  15. // CHECK:STDERR: end of line whitespace {{}}
  16. // CHECK:STDERR: {{\t}}tabs{{\t}}
  17. // CHECK:STDOUT: 2 args: `default_args`, `escaping.carbon`