replace_content.carbon 860 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. // 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/replace_content.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/replace_content.carbon
  9. // CHECK:STDOUT: 2 args: `default_args`, `replace_content.carbon`
  10. library "[[@TEST_NAME]]";
  11. // CHECK:STDOUT: replace_content.carbon:[[@LINE-1]]: library "replace_content";
  12. var x: str = "[[@0x48]][[@0x65]][[@0x6C]][[@0x6C]][[@0x6F]]";
  13. // CHECK:STDOUT: replace_content.carbon:[[@LINE-1]]: var x: str = "Hello";