replace_split_content.carbon 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  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_split_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_split_content.carbon
  9. // CHECK:STDOUT: 6 args: `default_args`, `a.carbon`, `b.impl.carbon`, `todo_c.carbon`, `todo_fail_d.carbon`, `triplicate.carbon`
  10. // --- a.carbon
  11. library "[[@TEST_NAME]]";
  12. // CHECK:STDOUT: a.carbon:[[@LINE-1]]: library "a";
  13. // --- b.impl.carbon
  14. library "[[@TEST_NAME]]";
  15. // CHECK:STDOUT: b.impl.carbon:[[@LINE-1]]: library "b";
  16. // --- todo_c.carbon
  17. library "[[@TEST_NAME]]";
  18. // CHECK:STDOUT: todo_c.carbon:[[@LINE-1]]: library "c";
  19. // --- todo_fail_d.carbon
  20. library "[[@TEST_NAME]]";
  21. // CHECK:STDOUT: todo_fail_d.carbon:[[@LINE-1]]: library "d";
  22. // --- triplicate.carbon
  23. [[@TEST_NAME]][[@TEST_NAME]][[@TEST_NAME]]
  24. // CHECK:STDOUT: triplicate.carbon:[[@LINE-1]]: triplicatetriplicatetriplicate