fail_multifile.carbon 1.3 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. //
  5. // AUTOUPDATE
  6. // TIP: To test this file alone, run:
  7. // TIP: bazel test //toolchain/testing:file_test --test_arg=--file_tests=toolchain/lex/testdata/fail_multifile.carbon
  8. // TIP: To dump output, run:
  9. // TIP: bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/lex/testdata/fail_multifile.carbon
  10. // --- fail_a.carbon
  11. // CHECK:STDOUT: - filename: fail_a.carbon
  12. // CHECK:STDOUT: tokens:
  13. // CHECK:STDERR: fail_a.carbon:[[@LINE+4]]:3: error: empty digit sequence in numeric literal [EmptyDigitSequence]
  14. // CHECK:STDERR: 1.a
  15. // CHECK:STDERR: ^
  16. // CHECK:STDERR:
  17. 1.a
  18. // CHECK:STDOUT: - { index: 1, kind: "Error", line: {{ *}}[[@LINE-1]], column: 1, indent: 1, spelling: "1.a", has_leading_space: true }
  19. // --- fail_b.carbon
  20. // CHECK:STDOUT: - filename: fail_b.carbon
  21. // CHECK:STDOUT: tokens:
  22. // CHECK:STDERR: fail_b.carbon:[[@LINE+4]]:3: error: empty digit sequence in numeric literal [EmptyDigitSequence]
  23. // CHECK:STDERR: 2.b
  24. // CHECK:STDERR: ^
  25. // CHECK:STDERR:
  26. 2.b
  27. // CHECK:STDOUT: - { index: 1, kind: "Error", line: {{ *}}[[@LINE-1]], column: 1, indent: 1, spelling: "2.b", has_leading_space: true }