file_only_re_multi_file.carbon 1.1 KB

1234567891011121314151617181920212223242526272829
  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/file_only_re_multi_file.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/file_only_re_multi_file.carbon
  9. // CHECK:STDOUT: 3 args: `default_args`, `a.carbon`, `b.carbon`
  10. // CHECK:STDOUT: unattached message 1
  11. // --- a.carbon
  12. // CHECK:STDOUT: file: a.carbon
  13. // CHECK:STDOUT: unattached message 2
  14. aaa
  15. // CHECK:STDOUT: line: [[@LINE-1]]: attached message 3
  16. // CHECK:STDOUT: unattached message 4
  17. // CHECK:STDOUT: line: [[@LINE+1]]: late message 5
  18. // CHECK:STDOUT: unattached message 6
  19. // --- b.carbon
  20. // CHECK:STDOUT: file: b.carbon
  21. bbb
  22. // CHECK:STDOUT: line: [[@LINE-1]]: attached message 7
  23. // CHECK:STDOUT: unattached message 8
  24. // CHECK:STDOUT: line: [[@LINE+1]]: late message 9
  25. // CHECK:STDOUT: unattached message 10